[epiphany] e-window: hide unsensitive actions in webapp mode



commit 54429945ac209b637d142d467d9287861c06579a
Author: Diego Escalante Urrelo <diegoe igalia com>
Date:   Mon Dec 10 05:17:18 2012 -0500

    e-window: hide unsensitive actions in webapp mode
    
    https://bugzilla.gnome.org/show_bug.cgi?id=685216

 src/ephy-window.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 9575995..70d79d6 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3942,10 +3942,10 @@ ephy_window_constructor (GType type,
        mode = ephy_embed_shell_get_mode (ephy_embed_shell_get_default ());
        if (mode == EPHY_EMBED_SHELL_MODE_APPLICATION)
        {
-               /* FileNewTab is sort of special. */
                action = gtk_action_group_get_action (toolbar_action_group, "FileNewTab");
                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, "ContextBookmarkPage");
                ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, TRUE);
@@ -3960,6 +3960,7 @@ ephy_window_constructor (GType type,
                        action = gtk_action_group_get_action (priv->action_group,
                                                              disabled_actions_for_app_mode[i]);
                        ephy_action_change_sensitivity_flags (action, SENS_FLAG_CHROME, TRUE);
+                       gtk_action_set_visible (action, FALSE);
                }
        }
 


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