aboutsummaryrefslogtreecommitdiffstats
path: root/src/popup-commands.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-20 07:58:02 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-20 07:58:02 +0800
commit38f4f77d16ff6ee02751eb91b9870108f639e21a (patch)
treea6558eafb1dd620719757c255f520d181440b4a9 /src/popup-commands.c
parent37a1f2f5e2544db814a79631d4f4b958f6dba9a8 (diff)
downloadgsoc2013-epiphany-38f4f77d16ff6ee02751eb91b9870108f639e21a.tar
gsoc2013-epiphany-38f4f77d16ff6ee02751eb91b9870108f639e21a.tar.gz
gsoc2013-epiphany-38f4f77d16ff6ee02751eb91b9870108f639e21a.tar.bz2
gsoc2013-epiphany-38f4f77d16ff6ee02751eb91b9870108f639e21a.tar.lz
gsoc2013-epiphany-38f4f77d16ff6ee02751eb91b9870108f639e21a.tar.xz
gsoc2013-epiphany-38f4f77d16ff6ee02751eb91b9870108f639e21a.tar.zst
gsoc2013-epiphany-38f4f77d16ff6ee02751eb91b9870108f639e21a.zip
Get rid of get/set _event, reformat the header.
2003-06-20 Marco Pesenti Gritti <marco@it.gnome.org> * src/ephy-tab.c: (ephy_tab_finalize), (ephy_tab_init): * src/ephy-tab.h: Get rid of get/set _event, reformat the header. * src/pdm-dialog.c: Fix compilation warning. * src/ephy-window.c: (popup_destroy_cb), (show_embed_popup): * src/popup-commands.c: (get_event_info): Less invasive way to access the event info from the callbacks.
Diffstat (limited to 'src/popup-commands.c')
-rw-r--r--src/popup-commands.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c
index 354713783..490982351 100644
--- a/src/popup-commands.c
+++ b/src/popup-commands.c
@@ -31,12 +31,8 @@ static EphyEmbedEvent *
get_event_info (EphyWindow *window)
{
EphyEmbedEvent *info;
- EphyTab *tab;
-
- tab = ephy_window_get_active_tab (window);
- g_return_val_if_fail (tab != NULL, NULL);
- info = ephy_tab_get_event (tab);
+ info = EPHY_EMBED_EVENT (g_object_get_data (window, "context_event"));
g_return_val_if_fail (info != NULL, NULL);
return info;