From: Daniel Carl <danielcarl@gmx.de>
Date: Thu, 5 Feb 2015 20:36:51 +0000 (+0100)
Subject: Show the widgets before reading the config file (#162).
X-Git-Url: https://git.owens.tech/assets/112-editable-focus.html/assets/112-editable-focus.html/git?a=commitdiff_plain;h=e82ad20d014f9c841d29e14489680f85921d74d5;p=vimb.git

Show the widgets before reading the config file (#162).

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().
---

diff --git a/src/main.c b/src/main.c
index 02d8e9c..6f1ecc0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);