From 6e26dc13b4210a188ae0316f45e0028894f619c1 Mon Sep 17 00:00:00 2001 From: Přemysl Eric Janouch Date: Tue, 25 Jan 2022 06:12:16 +0100 Subject: 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. --- fiv.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- cgit v1.2.3-70-g09d2