mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-11-10 21:53:46 +01:00
Change window title to filename
This commit is contained in:
parent
40c47db14d
commit
c441af5ed5
@ -1068,6 +1068,9 @@ open_file(char* path, char* password)
|
||||
}
|
||||
}
|
||||
|
||||
/* set window title */
|
||||
gtk_window_set_title(Zathura.UI.window, basename(file));
|
||||
|
||||
/* show document */
|
||||
set_page(start_page);
|
||||
update_status();
|
||||
@ -2324,6 +2327,7 @@ cmd_close(int argc, char** argv)
|
||||
free(Zathura.PDF.pages);
|
||||
g_object_unref(Zathura.PDF.document);
|
||||
g_free(Zathura.State.pages);
|
||||
gtk_window_set_title(Zathura.UI.window, "zathura");
|
||||
|
||||
Zathura.State.pages = g_strdup_printf("");
|
||||
Zathura.State.filename = (char*) DEFAULT_TEXT;
|
||||
|
Loading…
Reference in New Issue
Block a user