From: Daniel Carl <danielcarl@gmx.de>
Date: Fri, 6 Feb 2015 21:05:52 +0000 (+0100)
Subject: Setup signals before realizing the window.
X-Git-Url: https://git.owens.tech/projects.html/projects.html/git?a=commitdiff_plain;h=ab55788d844697400389ffa05f3f9832645336b9;p=vimb.git

Setup signals before realizing the window.

This is required to properly remove the scrollbars on some pages in case vimb
is compiles with GTK2.
---

diff --git a/src/main.c b/src/main.c
index 6f1ecc0..315d670 100644
--- a/src/main.c
+++ b/src/main.c
@@ -875,6 +875,8 @@ static void init_core(void)
 #endif
     map_init();
 
+    setup_signals();
+
     /* make sure the main window and all its contents are visible */
     gtk_widget_show_all(gui->window);
 
@@ -883,8 +885,6 @@ static void init_core(void)
     /* initially apply input style */
     vb_update_input_style();
 
-    setup_signals();
-
     if (vb.config.kioskmode) {
         WebKitWebSettings *setting = webkit_web_view_get_settings(gui->webview);