Setup all existing tabs initially when activating Mouse Gestures

This commit is contained in:
Christian Dywan 2009-11-13 22:33:05 +01:00
parent a5ecd0b493
commit ae3e7a804b

View file

@ -222,14 +222,20 @@ static void mouse_gestures_activate (MidoriExtension *extension, MidoriApp *app)
{ {
KatzeArray* browsers; KatzeArray* browsers;
MidoriBrowser* browser; MidoriBrowser* browser;
guint i; GtkWidget* tab;
guint i, j;
gesture = mouse_gesture_new (); gesture = mouse_gesture_new ();
browsers = katze_object_get_object (app, "browsers"); browsers = katze_object_get_object (app, "browsers");
i = 0; i = 0;
while ((browser = katze_array_get_nth_item (browsers, i++))) 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); mouse_gestures_browser_cb (app, browser);
}
g_object_unref (browsers); g_object_unref (browsers);
g_signal_connect (app, "add-browser", g_signal_connect (app, "add-browser",