From f81cb08fcbb2efc28cfccfa3fd685ad9d8c0e377 Mon Sep 17 00:00:00 2001 From: Crispin Flowerday Date: Tue, 17 Jan 2006 18:54:32 +0000 Subject: Change the 'ephy_embed_event_get_property' function return a GValue* 2006-01-17 Crispin Flowerday * embed/ephy-embed-event.c: (ephy_embed_event_get_property): * embed/ephy-embed-event.h: * embed/mozilla/mozilla-embed-event.cpp: * src/ephy-tab.c: (save_property_url), (ephy_tab_dom_mouse_click_cb): * src/ephy-window.c: (update_popups_tooltips), (show_embed_popup): * src/epiphany.defs: * src/epiphany.override: * 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): Change the 'ephy_embed_event_get_property' function return a GValue* rather than taking a pointer to it as an argument. --- embed/ephy-embed-event.c | 7 +++---- embed/ephy-embed-event.h | 11 ++++------- embed/mozilla/mozilla-embed-event.cpp | 7 +++---- 3 files changed, 10 insertions(+), 15 deletions(-) (limited to 'embed') diff --git a/embed/ephy-embed-event.c b/embed/ephy-embed-event.c index 7a4ef6826..069a839d7 100644 --- a/embed/ephy-embed-event.c +++ b/embed/ephy-embed-event.c @@ -88,13 +88,12 @@ ephy_embed_event_get_coords (EphyEmbedEvent *event, iface->get_coordinates (event, x, y); } -void +const GValue* ephy_embed_event_get_property (EphyEmbedEvent *event, - const char *name, - const GValue **value) + const char *name) { EphyEmbedEventIface *iface = EPHY_EMBED_EVENT_GET_IFACE (event); - iface->get_property (event, name, value); + return iface->get_property (event, name); } gboolean diff --git a/embed/ephy-embed-event.h b/embed/ephy-embed-event.h index 95d59d073..075a971b0 100644 --- a/embed/ephy-embed-event.h +++ b/embed/ephy-embed-event.h @@ -61,9 +61,8 @@ struct _EphyEmbedEventIface void (* get_coordinates) (EphyEmbedEvent *event, guint *x, guint *y); - void (* get_property) (EphyEmbedEvent *event, - const char *name, - const GValue **value); + const GValue* (* get_property) (EphyEmbedEvent *event, + const char *name); gboolean (* has_property) (EphyEmbedEvent *event, const char *name); gpointer (* get_dom_event) (EphyEmbedEvent *event); @@ -85,10 +84,8 @@ guint ephy_embed_event_get_modifier (EphyEmbedEvent *event); void ephy_embed_event_get_coords (EphyEmbedEvent *event, guint *x, guint *y); - -void ephy_embed_event_get_property (EphyEmbedEvent *event, - const char *name, - const GValue **value); +const GValue* ephy_embed_event_get_property (EphyEmbedEvent *event, + const char *name); gboolean ephy_embed_event_has_property (EphyEmbedEvent *event, const char *name); diff --git a/embed/mozilla/mozilla-embed-event.cpp b/embed/mozilla/mozilla-embed-event.cpp index cbd2802d4..eae87d95c 100644 --- a/embed/mozilla/mozilla-embed-event.cpp +++ b/embed/mozilla/mozilla-embed-event.cpp @@ -140,12 +140,11 @@ impl_get_coordinates (EphyEmbedEvent *event, *y = ((MozillaEmbedEvent *) event)->y; } -static void +static const GValue* impl_get_property (EphyEmbedEvent *event, - const char *name, - const GValue **value) + const char *name) { - *value = (const GValue *) g_hash_table_lookup (((MozillaEmbedEvent *) event)->priv->props, name); + return (const GValue *) g_hash_table_lookup (((MozillaEmbedEvent *) event)->priv->props, name); } static gboolean -- cgit v1.2.3