aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
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/ephy-window.c
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/ephy-window.c')
-rw-r--r--src/ephy-window.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index ee3bb8711..e3733c1a4 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -2978,11 +2978,12 @@ ephy_window_set_zoom (EphyWindow *window,
void
ephy_window_load_in_tabs (EphyWindow *window,
EphyTab *tab,
- GList *uri_list)
+ char **uris)
{
EphyEmbed *embed = NULL;
- GList *l;
- guint num = 0;
+ guint num;
+
+ g_return_if_fail (uris != NULL);
if (tab != NULL)
{
@@ -2990,11 +2991,10 @@ ephy_window_load_in_tabs (EphyWindow *window,
g_return_if_fail (EPHY_IS_EMBED (embed));
}
- l = uri_list;
- while (l != NULL && num < INSANE_NUMBER_OF_URLS)
+ for (num = 0; uris[num] != NULL && num < INSANE_NUMBER_OF_URLS; num++)
{
- const char *url = l->data;
-
+ const char *url = uris[num];
+
if (num == 0 && embed != NULL)
{
/**
@@ -3012,9 +3012,6 @@ ephy_window_load_in_tabs (EphyWindow *window,
(tab ? EPHY_NEW_TAB_APPEND_AFTER :
EPHY_NEW_TAB_APPEND_LAST));
}
-
- l = l->next;
- ++num;
}
}