]> spindle.queued.net Git - midori/commitdiff
Support executing multiple passed commands one after another
authorChristian Dywan <christian@twotoasts.de>
Mon, 7 Dec 2009 19:52:32 +0000 (20:52 +0100)
committerChristian Dywan <christian@twotoasts.de>
Mon, 7 Dec 2009 19:52:32 +0000 (20:52 +0100)
midori/main.c
midori/midori-app.c

index 66df49d4361c43cb025bd1539c84072442e68bda..9d45f38240ddc67d5b7fb278fce2a9755b8579e3 100644 (file)
@@ -1769,7 +1769,14 @@ main (int    argc,
         gtk_widget_show (GTK_WIDGET (browser));
         midori_browser_activate_action (browser, "Location");
         if (execute)
-            midori_browser_activate_action (browser, *uris);
+        {
+            i = 0;
+            while (uris[i] != NULL)
+            {
+                midori_browser_activate_action (browser, uris[i]);
+                i++;
+            }
+        }
         gtk_main ();
         return 0;
     }
index cb756e1e9eeabf3a0fcb2ea67d1d0bce3eb10a0a..b981c2518c3f1d15e3e275dfca41a871612c832e 100644 (file)
@@ -489,9 +489,15 @@ midori_app_command_received (MidoriApp*   app,
     }
     else if (g_str_equal (command, "command"))
     {
+        guint i = 0;
+
         if (!uris || !app->browser)
             return FALSE;
-        midori_browser_activate_action (app->browser, *uris);
+        while (uris[i] != NULL)
+        {
+            midori_browser_activate_action (app->browser, uris[i]);
+            i++;
+        }
         return TRUE;
     }