aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2022-01-25 06:12:16 +0100
committerPřemysl Eric Janouch <p@janouch.name>2022-01-25 06:15:05 +0100
commit6e26dc13b4210a188ae0316f45e0028894f619c1 (patch)
tree2315241125bd166dc8b4183169de327d331bfc1b
parent5c725d196870a9a1d81c26e1adc1ec0f74bf0711 (diff)
downloadfiv-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.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fiv.c b/fiv.c
index 33bb961..41aa7e5 100644
--- a/fiv.c
+++ b/fiv.c
@@ -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);