From 4e0702948781cf04c0d2f26a0e662a782118015d Mon Sep 17 00:00:00 2001 From: Diego Escalante Urrelo Date: Thu, 1 Aug 2013 15:19:35 +0200 Subject: 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 --- src/ephy-window.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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, -- cgit