Setup signals before realizing the window.
authorDaniel Carl <danielcarl@gmx.de>
Fri, 6 Feb 2015 21:05:52 +0000 (22:05 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Fri, 6 Feb 2015 21:05:52 +0000 (22:05 +0100)
This is required to properly remove the scrollbars on some pages in case vimb
is compiles with GTK2.

src/main.c

index 6f1ecc0..315d670 100644 (file)
@@ -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);