Update title with file path

This commit is contained in:
Moritz Lipp 2012-03-16 07:58:55 +01:00
parent 31aa53017a
commit 3bc6224976

View File

@ -497,6 +497,9 @@ document_open(zathura_t* zathura, const char* path, const char* password)
page_set_delayed(zathura, document->current_page_number); page_set_delayed(zathura, document->current_page_number);
cb_view_vadjustment_value_changed(NULL, zathura); cb_view_vadjustment_value_changed(NULL, zathura);
/* update title */
girara_set_window_title(zathura->ui.session, document->file_path);
free(file_uri); free(file_uri);
return true; return true;
@ -597,6 +600,9 @@ document_close(zathura_t* zathura, bool keep_monitor)
girara_statusbar_item_set_text(zathura->ui.session, zathura->ui.statusbar.file, "[No name]"); girara_statusbar_item_set_text(zathura->ui.session, zathura->ui.statusbar.file, "[No name]");
} }
/* update title */
girara_set_window_title(zathura->ui.session, "zathura");
return true; return true;
} }