Commit 4e070294 authored by Diego Escalante Urrelo's avatar Diego Escalante Urrelo Committed by Claudio Saavedra

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
parent 3c0c15b0
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment