aboutsummaryrefslogtreecommitdiffstats
path: root/src/popup-commands.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-11-16 23:03:10 +0800
committerXan Lopez <xan@src.gnome.org>2007-11-16 23:03:10 +0800
commitb7d6a7384621691379618b0be22bef0f58b30414 (patch)
tree378d3377f3290f3461b23f25349579077ff0bdb3 /src/popup-commands.c
parent1b8bf4b88fb016020c822e5a9208a89ed8ebbdc4 (diff)
downloadgsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.gz
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.bz2
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.lz
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.xz
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.tar.zst
gsoc2013-epiphany-b7d6a7384621691379618b0be22bef0f58b30414.zip
And port all the callers in src/
svn path=/trunk/; revision=7695
Diffstat (limited to 'src/popup-commands.c')
-rw-r--r--src/popup-commands.c20
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");