]> spindle.queued.net Git - midori/commitdiff
Add pageholder to existing browsers and not only new ones
authorEnrico Tröger <enrico.troeger@uvena.de>
Tue, 24 Mar 2009 23:43:03 +0000 (00:43 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 24 Mar 2009 23:43:03 +0000 (00:43 +0100)
extensions/page-holder.c

index 2902b78a38bc2901679ac9de03c8d5323a44a73c..7d3032bd264b06a8a899b704731239334c38e982 100644 (file)
@@ -122,6 +122,14 @@ static void
 page_holder_activate_cb (MidoriExtension* extension,
                          MidoriApp*       app)
 {
+    KatzeArray* browsers;
+    MidoriBrowser* browser;
+    guint i;
+
+    browsers = katze_object_get_object (app, "browsers");
+    i = 0;
+    while ((browser = katze_array_get_nth_item (browsers, i++)))
+        page_holder_app_add_browser_cb (app, browser, extension);
     g_signal_connect (app, "add-browser",
         G_CALLBACK (page_holder_app_add_browser_cb), extension);
 }