[epiphany] ephy-window: hide some irrelevant context menu actions when in app mode



commit 4321e7213506b09b186a4b58024c58c0cec4357e
Author: Xan Lopez <xlopez igalia com>
Date:   Sat Sep 3 18:58:52 2011 +0200

    ephy-window: hide some irrelevant context menu actions when in app mode
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657624

 src/ephy-window.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index d678e5d..6e51902 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -1180,6 +1180,18 @@ update_popup_actions_visibility (EphyWindow *window,
 
 	action_group = window->priv->popups_action_group;
 
+	if (ephy_embed_shell_get_mode (embed_shell) == EPHY_EMBED_SHELL_MODE_APPLICATION)
+	{
+		action = gtk_action_group_get_action (action_group, "OpenLinkInNewTab");
+		gtk_action_set_visible (action, FALSE);
+		action = gtk_action_group_get_action (action_group, "OpenLinkInNewWindow");
+		gtk_action_set_visible (action, FALSE);
+		action = gtk_action_group_get_action (action_group, "ContextBookmarkPage");
+		gtk_action_set_visible (action, FALSE);
+		action = gtk_action_group_get_action (action_group, "BookmarkLink");
+		gtk_action_set_visible (action, FALSE);
+	}
+
 	action = gtk_action_group_get_action (action_group, "OpenImage");
 	gtk_action_set_visible (action, is_image);
 	action = gtk_action_group_get_action (action_group, "SaveImageAs");



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]