aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorXan Lopez <xlopez@igalia.com>2011-09-04 00:58:52 +0800
committerXan Lopez <xlopez@igalia.com>2011-09-04 00:59:59 +0800
commit4321e7213506b09b186a4b58024c58c0cec4357e (patch)
tree36ff72bca467f01efcef8241cde0940ae3363516 /src
parenteaa76f15cb8ee10af9cc44a5d2782c8c3fdcf402 (diff)
downloadgsoc2013-epiphany-4321e7213506b09b186a4b58024c58c0cec4357e.tar
gsoc2013-epiphany-4321e7213506b09b186a4b58024c58c0cec4357e.tar.gz
gsoc2013-epiphany-4321e7213506b09b186a4b58024c58c0cec4357e.tar.bz2
gsoc2013-epiphany-4321e7213506b09b186a4b58024c58c0cec4357e.tar.lz
gsoc2013-epiphany-4321e7213506b09b186a4b58024c58c0cec4357e.tar.xz
gsoc2013-epiphany-4321e7213506b09b186a4b58024c58c0cec4357e.tar.zst
gsoc2013-epiphany-4321e7213506b09b186a4b58024c58c0cec4357e.zip
ephy-window: hide some irrelevant context menu actions when in app mode
https://bugzilla.gnome.org/show_bug.cgi?id=657624
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index d678e5d1b..6e5190228 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");