diff options
author | Diego Escalante Urrelo <diegoe@igalia.com> | 2012-12-10 18:17:18 +0800 |
---|---|---|
committer | Claudio Saavedra <csaavedra@igalia.com> | 2013-08-03 15:55:46 +0800 |
commit | 54429945ac209b637d142d467d9287861c06579a (patch) | |
tree | 1bd5a42c47c7a48d866c89f3f0113e370f40de00 | |
parent | 819b2fba4c3788926a743a571cfb999588b47799 (diff) | |
download | gsoc2013-epiphany-54429945ac209b637d142d467d9287861c06579a.tar gsoc2013-epiphany-54429945ac209b637d142d467d9287861c06579a.tar.gz gsoc2013-epiphany-54429945ac209b637d142d467d9287861c06579a.tar.bz2 gsoc2013-epiphany-54429945ac209b637d142d467d9287861c06579a.tar.lz gsoc2013-epiphany-54429945ac209b637d142d467d9287861c06579a.tar.xz gsoc2013-epiphany-54429945ac209b637d142d467d9287861c06579a.tar.zst gsoc2013-epiphany-54429945ac209b637d142d467d9287861c06579a.zip |
e-window: hide unsensitive actions in webapp mode
https://bugzilla.gnome.org/show_bug.cgi?id=685216
-rw-r--r-- | 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 957599554..70d79d671 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); } } |