From c4808e17016716267b3c6960df0083e494f03ec4 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 16 Sep 2009 21:52:14 +0200 Subject: [PATCH] Setup mouse gestures properly without a restart --- extensions/mouse-gestures/main.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/extensions/mouse-gestures/main.c b/extensions/mouse-gestures/main.c index 1e8707b7..cd39a283 100644 --- a/extensions/mouse-gestures/main.c +++ b/extensions/mouse-gestures/main.c @@ -220,8 +220,18 @@ static void mouse_gestures_deactivate (MidoriExtension *extension, MidoriApp *ap static void mouse_gestures_activate (MidoriExtension *extension, MidoriApp *app) { + KatzeArray* browsers; + MidoriBrowser* browser; + guint i; + gesture = mouse_gesture_new (); + browsers = katze_object_get_object (app, "browsers"); + i = 0; + while ((browser = katze_array_get_nth_item (browsers, i++))) + mouse_gestures_browser_cb (app, browser); + g_object_unref (browsers); + g_signal_connect (app, "add-browser", G_CALLBACK (mouse_gestures_browser_cb), NULL); g_signal_connect (extension, "deactivate", -- 2.39.5