aboutsummaryrefslogtreecommitdiffstats
path: root/src/epiphany.defs
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-04 04:29:26 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-04 04:29:26 +0800
commit98c2f091a837f36c61ec7889072f7034687a69bf (patch)
tree9f4b9cbaf8beb0951a582765ec4971d3d90c6acf /src/epiphany.defs
parent5725b54c776891dfcb522a96a79a145191f470da (diff)
downloadgsoc2013-epiphany-98c2f091a837f36c61ec7889072f7034687a69bf.tar
gsoc2013-epiphany-98c2f091a837f36c61ec7889072f7034687a69bf.tar.gz
gsoc2013-epiphany-98c2f091a837f36c61ec7889072f7034687a69bf.tar.bz2
gsoc2013-epiphany-98c2f091a837f36c61ec7889072f7034687a69bf.tar.lz
gsoc2013-epiphany-98c2f091a837f36c61ec7889072f7034687a69bf.tar.xz
gsoc2013-epiphany-98c2f091a837f36c61ec7889072f7034687a69bf.tar.zst
gsoc2013-epiphany-98c2f091a837f36c61ec7889072f7034687a69bf.zip
Add public function ephy_window_get_context_event() to get the
2005-08-03 Christian Persch <chpe@cvs.gnome.org> * src/ephy-window.c: (popup_menu_at_coords), (idle_unref_context_event), (set_context_event), (embed_popup_deactivate_cb), (get_name_from_address_value), (show_embed_popup), (ephy_window_dispose), (ephy_window_get_is_print_preview), (ephy_window_get_context_event): * src/ephy-window.h: * src/epiphany.defs: * src/popup-commands.c: (popup_cmd_link_in_new_window), (popup_cmd_link_in_new_tab), (popup_cmd_bookmark_link), (popup_cmd_copy_link_address), (save_property_url), (popup_cmd_open_link), (popup_cmd_set_image_as_background), (popup_cmd_copy_image_location), (popup_cmd_open_image): Add public function ephy_window_get_context_event() to get the EphyEmbedEvent for the current popup menu, instead of using an undocument g_object_get_data() call. Also fixes bug #310910. Don't printf NULL; fixes bug #309796.
Diffstat (limited to 'src/epiphany.defs')
-rw-r--r--src/epiphany.defs13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/epiphany.defs b/src/epiphany.defs
index 4f0afed07..4f5820334 100644
--- a/src/epiphany.defs
+++ b/src/epiphany.defs
@@ -211,13 +211,6 @@
(gtype-id "EPHY_TYPE_WINDOW")
)
-(define-object MozillaEmbedEvent
- (in-module "Mozilla")
- (parent "GObject")
- (c-name "MozillaEmbedEvent")
- (gtype-id "MOZILLA_TYPE_EMBED_EVENT")
-)
-
;; Enumerations and flags ...
(define-flags EmbedEventContext
@@ -3331,6 +3324,12 @@
(return-type "gboolean")
)
+(define-method get_context_event
+ (of-object "EphyWindow")
+ (c-name "ephy_window_get_context_event")
+ (return-type "EphyEmbedEvent*")
+)
+
;; From ../embed/ephy-embed-type-builtins.h