aboutsummaryrefslogtreecommitdiffstats
path: root/src/bookmarks
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-10-23 05:43:02 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-23 05:43:02 +0800
commit64ff5c590db02cddccc6088162747c2b69ccd87d (patch)
tree7977055823b9348f83fd663d9e9f24b595f9b488 /src/bookmarks
parent2fca0657c1b30df95f4c7cc4d7d8801f4c6ff703 (diff)
downloadgsoc2013-epiphany-64ff5c590db02cddccc6088162747c2b69ccd87d.tar
gsoc2013-epiphany-64ff5c590db02cddccc6088162747c2b69ccd87d.tar.gz
gsoc2013-epiphany-64ff5c590db02cddccc6088162747c2b69ccd87d.tar.bz2
gsoc2013-epiphany-64ff5c590db02cddccc6088162747c2b69ccd87d.tar.lz
gsoc2013-epiphany-64ff5c590db02cddccc6088162747c2b69ccd87d.tar.xz
gsoc2013-epiphany-64ff5c590db02cddccc6088162747c2b69ccd87d.tar.zst
gsoc2013-epiphany-64ff5c590db02cddccc6088162747c2b69ccd87d.zip
Remove ephy_string_parse_uri_list, and use new glib function
2004-10-22 Christian Persch <chpe@cvs.gnome.org> * lib/ephy-string.c: (ephy_string_double_underscores): * lib/ephy-string.h: * lib/widgets/ephy-node-view.c: (drag_data_received_cb): * src/bookmarks/ephy-bookmarks-editor.c: (node_dropped_cb): * src/ephy-notebook.c: (notebook_drag_data_received_cb): * src/ephy-window.c: (ephy_window_load_in_tabs): * src/ephy-window.h: Remove ephy_string_parse_uri_list, and use new glib function g_uri_list_extract_uris() instead.
Diffstat (limited to 'src/bookmarks')
-rw-r--r--src/bookmarks/ephy-bookmarks-editor.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/bookmarks/ephy-bookmarks-editor.c b/src/bookmarks/ephy-bookmarks-editor.c
index c97d953c4..c447cb65b 100644
--- a/src/bookmarks/ephy-bookmarks-editor.c
+++ b/src/bookmarks/ephy-bookmarks-editor.c
@@ -1317,17 +1317,19 @@ delete_event_cb (EphyBookmarksEditor *editor)
}
static void
-node_dropped_cb (EphyNodeView *view, EphyNode *node,
- GList *nodes, EphyBookmarksEditor *editor)
+node_dropped_cb (EphyNodeView *view,
+ EphyNode *node,
+ const char * const *uris,
+ EphyBookmarksEditor *editor)
{
- GList *l;
+ EphyNode *bmk;
+ int i;
- for (l = nodes; l != NULL; l = l->next)
- {
- const char *url = (const char *) l->data;
- EphyNode *bmk;
+ g_return_if_fail (uris != NULL);
- bmk = ephy_bookmarks_find_bookmark (editor->priv->bookmarks, url);
+ for (i = 0; uris[i] != NULL; i++)
+ {
+ bmk = ephy_bookmarks_find_bookmark (editor->priv->bookmarks, uris[i]);
if (bmk != NULL)
{