From ae3e7a804b87d8c8f2b01621726c2de2aecab6a1 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Fri, 13 Nov 2009 22:33:05 +0100 Subject: [PATCH] Setup all existing tabs initially when activating Mouse Gestures --- extensions/mouse-gestures/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/extensions/mouse-gestures/main.c b/extensions/mouse-gestures/main.c index cd39a283..d173a2b2 100644 --- a/extensions/mouse-gestures/main.c +++ b/extensions/mouse-gestures/main.c @@ -222,14 +222,20 @@ static void mouse_gestures_activate (MidoriExtension *extension, MidoriApp *app) { KatzeArray* browsers; MidoriBrowser* browser; - guint i; + GtkWidget* tab; + guint i, j; gesture = mouse_gesture_new (); browsers = katze_object_get_object (app, "browsers"); i = 0; while ((browser = katze_array_get_nth_item (browsers, i++))) + { + j = 0; + while ((tab = midori_browser_get_nth_tab (browser, j++))) + mouse_gestures_tab_cb (browser, tab); mouse_gestures_browser_cb (app, browser); + } g_object_unref (browsers); g_signal_connect (app, "add-browser",