[epiphany] e-window: hide and disable more actions in webapp mode



commit 4e0702948781cf04c0d2f26a0e662a782118015d
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Thu Aug 1 15:19:35 2013 +0200

    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 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 05d9b88..9575995 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,


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