diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2022-01-25 06:12:16 +0100 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2022-01-25 06:15:05 +0100 |
commit | 6e26dc13b4210a188ae0316f45e0028894f619c1 (patch) | |
tree | 2315241125bd166dc8b4183169de327d331bfc1b | |
parent | 5c725d196870a9a1d81c26e1adc1ec0f74bf0711 (diff) | |
download | fiv-6e26dc13b4210a188ae0316f45e0028894f619c1.tar.gz fiv-6e26dc13b4210a188ae0316f45e0028894f619c1.tar.xz fiv-6e26dc13b4210a188ae0316f45e0028894f619c1.zip |
Only show the info bar when appropriate
The late, global gtk_widget_show_all() made it always start visible,
in particular when the program was launched directly on an image file,
and not in browsing mode.
-rw-r--r-- | fiv.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1828,6 +1828,9 @@ main(int argc, char *argv[]) g.view_info_label); g_signal_connect(g.view, "notify::messages", G_CALLBACK(on_notify_view_messages), NULL); + gtk_widget_show_all(g.view_info); + gtk_widget_set_no_show_all(g.view_info, TRUE); + gtk_widget_hide(g.view_info); // Need to put the toolbar at the top, because of the horizontal scrollbar. g.view_box = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); |