[Xfce4-commits] <midori:master> Support executing multiple passed commands one after another

Christian Dywan noreply at xfce.org
Mon Dec 7 21:04:01 CET 2009


Updating branch refs/heads/master
         to 9adf9458b01115cbb046eb46306a1c0d3801d46e (commit)
       from 23a2d8e49167eda7f6fa7a24c371055d0fc4bbce (commit)

commit 9adf9458b01115cbb046eb46306a1c0d3801d46e
Author: Christian Dywan <christian at twotoasts.de>
Date:   Mon Dec 7 20:52:32 2009 +0100

    Support executing multiple passed commands one after another

 midori/main.c       |    9 ++++++++-
 midori/midori-app.c |    8 +++++++-
 2 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/midori/main.c b/midori/main.c
index 66df49d..9d45f38 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -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;
     }
diff --git a/midori/midori-app.c b/midori/midori-app.c
index cb756e1..b981c25 100644
--- a/midori/midori-app.c
+++ b/midori/midori-app.c
@@ -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;
     }
 



More information about the Xfce4-commits mailing list