Show the widgets before reading the config file (#162).
authorDaniel Carl <danielcarl@gmx.de>
Thu, 5 Feb 2015 20:36:51 +0000 (21:36 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Thu, 5 Feb 2015 20:38:54 +0000 (21:38 +0100)
This is required to open vimb with hidden inputbox in case 'input-autohide' is
enabled. Else the inputbox is marked as hidden but becomes visible again on
call of gtk_widget_show_all().

src/main.c

index 02d8e9c..6f1ecc0 100644 (file)
@@ -874,6 +874,10 @@ static void init_core(void)
     autocmd_init();
 #endif
     map_init();
+
+    /* make sure the main window and all its contents are visible */
+    gtk_widget_show_all(gui->window);
+
     read_config();
 
     /* initially apply input style */
@@ -881,8 +885,6 @@ static void init_core(void)
 
     setup_signals();
 
-    /* make sure the main window and all its contents are visible */
-    gtk_widget_show_all(gui->window);
     if (vb.config.kioskmode) {
         WebKitWebSettings *setting = webkit_web_view_get_settings(gui->webview);