From ab55788d844697400389ffa05f3f9832645336b9 Mon Sep 17 00:00:00 2001
From: Daniel Carl <danielcarl@gmx.de>
Date: Fri, 6 Feb 2015 22:05:52 +0100
Subject: [PATCH] Setup signals before realizing the window.

This is required to properly remove the scrollbars on some pages in case vimb
is compiles with GTK2.
---
 src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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