aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Escalante Urrelo <diegoe@igalia.com>2013-08-01 21:19:35 +0800
committerClaudio Saavedra <csaavedra@igalia.com>2013-08-01 21:20:53 +0800
commit4e0702948781cf04c0d2f26a0e662a782118015d (patch)
treecc6cb539b3ee1f0d0dd617afdd5d09d1b3d6a52e
parent3c0c15b061d7f1a9981baa75dc768e7ee00f86b2 (diff)
downloadgsoc2013-epiphany-4e0702948781cf04c0d2f26a0e662a782118015d.tar
gsoc2013-epiphany-4e0702948781cf04c0d2f26a0e662a782118015d.tar.gz
gsoc2013-epiphany-4e0702948781cf04c0d2f26a0e662a782118015d.tar.bz2
gsoc2013-epiphany-4e0702948781cf04c0d2f26a0e662a782118015d.tar.lz
gsoc2013-epiphany-4e0702948781cf04c0d2f26a0e662a782118015d.tar.xz
gsoc2013-epiphany-4e0702948781cf04c0d2f26a0e662a782118015d.tar.zst
gsoc2013-epiphany-4e0702948781cf04c0d2f26a0e662a782118015d.zip
e-window: hide and disable more actions in webapp mode
This disables and hides: ViewPageSource, ContextBookmarkPage, InspectElement. https://bugzilla.gnome.org/show_bug.cgi?id=672910
-rw-r--r--src/ephy-window.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 05d9b88c0..957599554 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3721,6 +3721,7 @@ static const char* disabled_actions_for_app_mode[] = { "FileOpen",
"FileSaveAs",
"FileSaveAsApplication",
"ViewEncoding",
+ "ViewPageSource",
"FileBookmarkPage",
"EditBookmarks",
"EditHistory",
@@ -3946,6 +3947,14 @@ ephy_window_constructor (GType type,
ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME,
TRUE);
+ action = gtk_action_group_get_action (priv->popups_action_group, "ContextBookmarkPage");
+ ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, TRUE);
+ gtk_action_set_visible (action, FALSE);
+
+ action = gtk_action_group_get_action (priv->popups_action_group, "InspectElement");
+ ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, TRUE);
+ gtk_action_set_visible (action, FALSE);
+
for (i = 0; i < G_N_ELEMENTS (disabled_actions_for_app_mode); i++)
{
action = gtk_action_group_get_action (priv->action_group,