From 35ef1f7485dc967d231115c6eb8c00ce827c88b3 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Mon, 22 Jun 2009 21:29:39 +0200 Subject: [PATCH] Add zooming items to the context menu --- midori/midori-view.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/midori/midori-view.c b/midori/midori-view.c index 094fc7db..5ee83414 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -1312,6 +1312,20 @@ webkit_web_view_populate_popup_cb (WebKitWebView* web_view, gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); gtk_widget_show (menuitem); + menuitem = sokoke_action_create_popup_menu_item ( + gtk_action_group_get_action (actions, "ZoomIn")); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); + menuitem = sokoke_action_create_popup_menu_item ( + gtk_action_group_get_action (actions, "ZoomOut")); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); + menuitem = sokoke_action_create_popup_menu_item ( + gtk_action_group_get_action (actions, "ZoomNormal")); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); + + menuitem = gtk_separator_menu_item_new (); + gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); + gtk_widget_show (menuitem); + menuitem = sokoke_action_create_popup_menu_item ( gtk_action_group_get_action (actions, "BookmarkAdd")); gtk_menu_shell_append (GTK_MENU_SHELL (menu), menuitem); -- 2.39.5