diff options
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); |