[Xfce4-commits] <midori:master> Implement 'Open Link as Web A_pplication' in link context menu
Christian Dywan
noreply at xfce.org
Sat Jan 2 22:08:01 CET 2010
Updating branch refs/heads/master
to 3163c659e531a33e204e70496e4226aa31f8a014 (commit)
from cf9dec176c06e45da676071dcaedb6f972b34109 (commit)
commit 3163c659e531a33e204e70496e4226aa31f8a014
Author: Christian Dywan <christian at twotoasts.de>
Date: Sat Jan 2 21:59:34 2010 +0100
Implement 'Open Link as Web A_pplication' in link context menu
midori/midori-view.c | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/midori/midori-view.c b/midori/midori-view.c
index d86a539..950b6fb 100644
--- a/midori/midori-view.c
+++ b/midori/midori-view.c
@@ -1432,6 +1432,14 @@ midori_web_view_menu_new_window_activate_cb (GtkWidget* widget,
}
static void
+midori_web_view_menu_web_app_activate_cb (GtkWidget* widget,
+ MidoriView* view)
+{
+ /* FIXME: Use the same binary that is running right now */
+ sokoke_spawn_program ("midori -a", view->link_uri, FALSE);
+}
+
+static void
midori_web_view_menu_link_copy_activate_cb (GtkWidget* widget,
MidoriView* view)
{
@@ -1825,6 +1833,9 @@ webkit_web_view_populate_popup_cb (WebKitWebView* web_view,
_("Open Link in New _Window"), STOCK_WINDOW_NEW,
G_CALLBACK (midori_web_view_menu_new_window_activate_cb), widget);
midori_view_insert_menu_item (menu_shell, -1,
+ _("Open Link as Web A_pplication"), NULL,
+ G_CALLBACK (midori_web_view_menu_web_app_activate_cb), widget);
+ midori_view_insert_menu_item (menu_shell, -1,
_("_Copy Link destination"), NULL,
G_CALLBACK (midori_web_view_menu_link_copy_activate_cb), widget);
midori_view_insert_menu_item (menu_shell, -1,
More information about the Xfce4-commits
mailing list