diff options
author | Xan Lopez <xan@igalia.com> | 2012-01-23 21:38:42 +0800 |
---|---|---|
committer | Xan Lopez <xan@igalia.com> | 2012-01-23 21:39:44 +0800 |
commit | f9d3e0df1d982cd511af088ba12384d9fdca8ba8 (patch) | |
tree | 2ca55d9cf9f82a37148e070f758b8673325e921e /src/ephy-window.c | |
parent | 512d7d577d2c869b86c655b4e235760990c2b6ba (diff) | |
download | gsoc2013-epiphany-f9d3e0df1d982cd511af088ba12384d9fdca8ba8.tar gsoc2013-epiphany-f9d3e0df1d982cd511af088ba12384d9fdca8ba8.tar.gz gsoc2013-epiphany-f9d3e0df1d982cd511af088ba12384d9fdca8ba8.tar.bz2 gsoc2013-epiphany-f9d3e0df1d982cd511af088ba12384d9fdca8ba8.tar.lz gsoc2013-epiphany-f9d3e0df1d982cd511af088ba12384d9fdca8ba8.tar.xz gsoc2013-epiphany-f9d3e0df1d982cd511af088ba12384d9fdca8ba8.tar.zst gsoc2013-epiphany-f9d3e0df1d982cd511af088ba12384d9fdca8ba8.zip |
Remove the "Open Frame" functionality
It's been #if 0-ed and broken forever too. If someone really wants it
it should probably go into an extension.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r-- | src/ephy-window.c | 22 |
1 files changed, 3 insertions, 19 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c index 99106c87e..0a48de55d 100644 --- a/src/ephy-window.c +++ b/src/ephy-window.c @@ -238,12 +238,6 @@ static const GtkActionEntry ephy_popups_entries [] = { N_("Add a bookmark for the current page"), G_CALLBACK (window_cmd_file_bookmark_page) }, - /* Framed document. */ - - { "OpenFrame", NULL, N_("Show Only _This Frame"), NULL, - N_("Show only this frame in this window"), - G_CALLBACK (popup_cmd_open_frame) }, - /* Links. */ { "OpenLink", GTK_STOCK_JUMP_TO, N_("_Open Link"), NULL, @@ -1139,8 +1133,7 @@ ephy_window_delete_event (GtkWidget *widget, static void update_popup_actions_visibility (EphyWindow *window, WebKitWebView *view, - guint context, - gboolean is_frame) + guint context) { GtkAction *action; GtkActionGroup *action_group; @@ -1173,9 +1166,6 @@ update_popup_actions_visibility (EphyWindow *window, action = gtk_action_group_get_action (action_group, "CopyImageLocation"); gtk_action_set_visible (action, is_image); - action = gtk_action_group_get_action (action_group, "OpenFrame"); - gtk_action_set_visible (action, is_frame); - if (is_editable) { char *text = NULL; @@ -1942,17 +1932,12 @@ show_embed_popup (EphyWindow *window, GtkAction *action; guint context; const char *popup; - gboolean framed = FALSE, can_open_in_new; + gboolean can_open_in_new; GtkWidget *widget; guint button; char *uri; EphyEmbedEvent *embed_event; -#if 0 - value = ephy_embed_event_get_property (event, "framed_page"); - framed = g_value_get_int (value); -#endif - g_object_get (hit_test_result, "link-uri", &uri, NULL); can_open_in_new = uri && ephy_embed_utils_address_has_web_scheme (uri); g_free (uri); @@ -1992,8 +1977,7 @@ show_embed_popup (EphyWindow *window, update_popup_actions_visibility (window, view, - context, - framed); + context); embed_event = ephy_embed_event_new (event, hit_test_result); _ephy_window_set_context_event (window, embed_event); |