diff options
Diffstat (limited to 'src/popup-commands.c')
-rw-r--r-- | src/popup-commands.c | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c index 45eb6a88b..6e4d677a4 100644 --- a/src/popup-commands.c +++ b/src/popup-commands.c @@ -23,6 +23,7 @@ #include "popup-commands.h" #include "ephy-shell.h" +#include "ephy-embed-container.h" #include "ephy-embed-factory.h" #include "ephy-embed-persist.h" #include "ephy-prefs.h" @@ -47,7 +48,8 @@ popup_cmd_link_in_new_window (GtkAction *action, EphyEmbed *embed; const GValue *value; - embed = ephy_window_get_active_tab (window); + embed = ephy_embed_container_get_active_child + (EPHY_EMBED_CONTAINER (window)); event = ephy_window_get_context_event (window); g_return_if_fail (event != NULL); @@ -68,7 +70,8 @@ popup_cmd_link_in_new_tab (GtkAction *action, EphyEmbed *embed; const GValue *value; - embed = ephy_window_get_active_tab (window); + embed = ephy_embed_container_get_active_child + (EPHY_EMBED_CONTAINER (window)); event = ephy_window_get_context_event (window); g_return_if_fail (event != NULL); @@ -204,7 +207,7 @@ save_property_url (GtkAction *action, event = ephy_window_get_context_event (window); g_return_if_fail (event != NULL); - embed = ephy_window_get_active_tab (window); + embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); value = ephy_embed_event_get_property (event, property); @@ -239,7 +242,8 @@ popup_cmd_open_link (GtkAction *action, const GValue *value; EphyEmbed *embed; - embed = ephy_window_get_active_tab (window); + embed = ephy_embed_container_get_active_child + (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); event = ephy_window_get_context_event (window); @@ -314,7 +318,7 @@ popup_cmd_set_image_as_background (GtkAction *action, event = ephy_window_get_context_event (window); g_return_if_fail (event != NULL); - embed = ephy_window_get_active_tab (window); + embed = ephy_embed_container_get_active_child (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); value = ephy_embed_event_get_property (event, "image"); @@ -364,7 +368,8 @@ popup_cmd_open_frame (GtkAction *action, char *location; EphyEmbed *embed; - embed = ephy_window_get_active_tab (window); + embed = ephy_embed_container_get_active_child + (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); location = ephy_embed_get_location (embed, FALSE); @@ -468,7 +473,8 @@ popup_cmd_open_image (GtkAction *action, event = ephy_window_get_context_event (window); g_return_if_fail (event != NULL); - embed = ephy_window_get_active_tab (window); + embed = ephy_embed_container_get_active_child + (EPHY_EMBED_CONTAINER (window)); g_return_if_fail (embed != NULL); value = ephy_embed_event_get_property (event, "image"); |