diff options
author | Gustavo Noronha Silva <gns@gnome.org> | 2009-10-27 18:09:57 +0800 |
---|---|---|
committer | Gustavo Noronha Silva <gns@gnome.org> | 2009-10-30 02:23:11 +0800 |
commit | c87401f28cb8ef3a645dfd5a687be6ddbbfe6790 (patch) | |
tree | f45c27535dc61afa233467a16af5018d20fb5c84 /src/ephy-window.c | |
parent | 68729d9fcdade0698b6e1ce979da271d49d7e3d0 (diff) | |
download | gsoc2013-epiphany-c87401f28cb8ef3a645dfd5a687be6ddbbfe6790.tar.gz gsoc2013-epiphany-c87401f28cb8ef3a645dfd5a687be6ddbbfe6790.tar.zst gsoc2013-epiphany-c87401f28cb8ef3a645dfd5a687be6ddbbfe6790.zip |
Provide the Inspect Element menu item again
WebKit now provides API to start the web inspector, so we can restore
the menu item.
Bug #599473
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | 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 df0c7dfb1..a734e94f9 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -345,6 +345,10 @@ static const GtkActionEntry ephy_popups_entries [] = { NULL, NULL }, { "StopImageAnimation", NULL, N_("St_op Animation"), NULL, NULL, NULL }, + + /* Inspector */ + { "InspectElement", NULL, N_("Inspect _Element"), NULL, + NULL, G_CALLBACK (popup_cmd_inspect_element) }, }; static const struct @@ -1119,6 +1123,7 @@ update_popup_actions_visibility (EphyWindow *window, { GtkAction *action; GtkActionGroup *action_group; + gboolean inspector_enabled; action_group = window->priv->popups_action_group; @@ -1133,6 +1138,10 @@ update_popup_actions_visibility (EphyWindow *window, action = gtk_action_group_get_action (action_group, "OpenFrame"); gtk_action_set_visible (action, is_frame); + + inspector_enabled = eel_gconf_get_boolean (CONF_WEB_INSPECTOR_ENABLED); + action = gtk_action_group_get_action (action_group, "InspectElement"); + gtk_action_set_visible (action, inspector_enabled); } static void |