diff options
author | Crispin Flowerday <gnome@flowerday.cx> | 2006-01-18 02:54:32 +0800 |
---|---|---|
committer | Crispin Flowerday <crispin@src.gnome.org> | 2006-01-18 02:54:32 +0800 |
commit | f81cb08fcbb2efc28cfccfa3fd685ad9d8c0e377 (patch) | |
tree | 9bf35ea0a30bf7c1c5823e56bc084e7e2f9a5ada /src/popup-commands.c | |
parent | ce161c639c50899f3b720e31a55397542e6a6a4c (diff) | |
download | gsoc2013-epiphany-f81cb08fcbb2efc28cfccfa3fd685ad9d8c0e377.tar.gz gsoc2013-epiphany-f81cb08fcbb2efc28cfccfa3fd685ad9d8c0e377.tar.zst gsoc2013-epiphany-f81cb08fcbb2efc28cfccfa3fd685ad9d8c0e377.zip |
Change the 'ephy_embed_event_get_property' function return a GValue*
2006-01-17 Crispin Flowerday <gnome@flowerday.cx>
* 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.
Diffstat (limited to 'src/popup-commands.c')
-rw-r--r-- | src/popup-commands.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/popup-commands.c b/src/popup-commands.c index f05167bb4..107304f83 100644 --- a/src/popup-commands.c +++ b/src/popup-commands.c @@ -51,7 +51,7 @@ popup_cmd_link_in_new_window (GtkAction *action, event = ephy_window_get_context_event (window); g_return_if_fail (event != NULL); - ephy_embed_event_get_property (event, "link", &value); + value = ephy_embed_event_get_property (event, "link"); ephy_shell_new_tab (ephy_shell, NULL, tab, g_value_get_string (value), @@ -72,7 +72,7 @@ popup_cmd_link_in_new_tab (GtkAction *action, event = ephy_window_get_context_event (window); g_return_if_fail (event != NULL); - ephy_embed_event_get_property (event, "link", &value); + value = ephy_embed_event_get_property (event, "link"); ephy_shell_new_tab (ephy_shell, window, tab, g_value_get_string (value), @@ -98,11 +98,11 @@ popup_cmd_bookmark_link (GtkAction *action, event = ephy_window_get_context_event (window); g_return_if_fail (event != NULL); - ephy_embed_event_get_property (event, "link_is_smart", &link_is_smart); - ephy_embed_event_get_property (event, "link", &link); - ephy_embed_event_get_property (event, "link_title", &link_title); - ephy_embed_event_get_property (event, "link_rel", &link_rel); - ephy_embed_event_get_property (event, "linktext", &linktext); + link_is_smart = ephy_embed_event_get_property (event, "link_is_smart"); + link = ephy_embed_event_get_property (event, "link"); + link_title = ephy_embed_event_get_property (event, "link_title"); + link_rel = ephy_embed_event_get_property (event, "link_rel"); + linktext = ephy_embed_event_get_property (event, "linktext"); location = g_value_get_string (link); g_return_if_fail (location); @@ -155,13 +155,13 @@ popup_cmd_copy_link_address (GtkAction *action, if (context & EPHY_EMBED_CONTEXT_EMAIL_LINK) { - ephy_embed_event_get_property (event, "email", &value); + value = ephy_embed_event_get_property (event, "email"); address = g_value_get_string (value); popup_cmd_copy_to_clipboard (window, address); } else if (context & EPHY_EMBED_CONTEXT_LINK) { - ephy_embed_event_get_property (event, "link", &value); + value = ephy_embed_event_get_property (event, "link"); address = g_value_get_string (value); popup_cmd_copy_to_clipboard (window, address); } @@ -186,7 +186,7 @@ save_property_url (GtkAction *action, embed = ephy_window_get_active_embed (window); g_return_if_fail (embed != NULL); - ephy_embed_event_get_property (event, property, &value); + value = ephy_embed_event_get_property (event, property); location = g_value_get_string (value); persist = EPHY_EMBED_PERSIST @@ -219,7 +219,7 @@ popup_cmd_open_link (GtkAction *action, g_return_if_fail (embed != NULL); event = ephy_window_get_context_event (window); - ephy_embed_event_get_property (event, "link", &value); + value = ephy_embed_event_get_property (event, "link"); location = g_value_get_string (value); ephy_embed_load_url (embed, location); @@ -292,7 +292,7 @@ popup_cmd_set_image_as_background (GtkAction *action, embed = ephy_window_get_active_embed (window); g_return_if_fail (embed != NULL); - ephy_embed_event_get_property (event, "image", &value); + value = ephy_embed_event_get_property (event, "image"); location = g_value_get_string (value); persist = EPHY_EMBED_PERSIST @@ -327,7 +327,7 @@ popup_cmd_copy_image_location (GtkAction *action, const GValue *value; event = ephy_window_get_context_event (window); - ephy_embed_event_get_property (event, "image", &value); + value = ephy_embed_event_get_property (event, "image"); location = g_value_get_string (value); popup_cmd_copy_to_clipboard (window, location); } @@ -435,7 +435,7 @@ popup_cmd_open_image (GtkAction *action, embed = ephy_window_get_active_embed (window); g_return_if_fail (embed != NULL); - ephy_embed_event_get_property (event, "image", &value); + value = ephy_embed_event_get_property (event, "image"); address = g_value_get_string (value); scheme = gnome_vfs_get_uri_scheme (address); |