diff options
author | Christian Persch <chpe@cvs.gnome.org> | 2004-10-23 05:43:02 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-10-23 05:43:02 +0800 |
commit | 64ff5c590db02cddccc6088162747c2b69ccd87d (patch) | |
tree | 7977055823b9348f83fd663d9e9f24b595f9b488 /lib/ephy-string.c | |
parent | 2fca0657c1b30df95f4c7cc4d7d8801f4c6ff703 (diff) | |
download | gsoc2013-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 'lib/ephy-string.c')
-rw-r--r-- | lib/ephy-string.c | 52 |
1 files changed, 0 insertions, 52 deletions
diff --git a/lib/ephy-string.c b/lib/ephy-string.c index daeac7d2b..dbda76275 100644 --- a/lib/ephy-string.c +++ b/lib/ephy-string.c @@ -191,55 +191,3 @@ ephy_string_double_underscores (const char *string) return escaped; } - -/* taken from libgnomevfs/gnome-vfs-uri.c */ -GList* -ephy_string_parse_uri_list (const gchar* uri_list) -{ - /* Note that this is mostly very stolen from old libgnome/gnome-mime.c */ - - const gchar *p, *q; - gchar *retval; - GList *result = NULL; - - g_return_val_if_fail (uri_list != NULL, NULL); - - p = uri_list; - - /* We don't actually try to validate the URI according to RFC - * 2396, or even check for allowed characters - we just ignore - * comments and trim whitespace off the ends. We also - * allow LF delimination as well as the specified CRLF. - */ - while (p != NULL) { - if (*p != '#') { - while (g_ascii_isspace (*p)) - p++; - - q = p; - while ((*q != '\0') - && (*q != '\n') - && (*q != '\r')) - q++; - - if (q > p) { - q--; - while (q > p - && g_ascii_isspace (*q)) - q--; - - retval = g_malloc (q - p + 2); - strncpy (retval, p, q - p + 1); - retval[q - p + 1] = '\0'; - - if (retval[0] != '\0') - result = g_list_prepend (result, retval); - } - } - p = strchr (p, '\n'); - if (p != NULL) - p++; - } - - return g_list_reverse (result); -} |