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.
This commit is contained in:
Přemysl Eric Janouch 2022-01-25 06:12:16 +01:00
parent 5c725d1968
commit 6e26dc13b4
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 3 additions and 0 deletions

3
fiv.c
View File

@ -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);