[GNOME VFS] procedure to parse nautilus's uri list?
Kang Jeong-Hee <[email protected]> Wed, 10 Jul 2002 01:19:58 +0900
| Newsgroups | gmane.comp.gnome.vfs |
|---|---|
| Message-ID | <[email protected]> |
Hi.
I'm making an applet which play music files thru gst.
it gather playlist solely by dnd, from nautilus or mozilla yet.
at before, I did
====
gchar *raw_data, *display_data;
GList *elem, *uris;
uris = gnome_vfs_uri_list_parse( selection_data->data );
gtk_drag_finish( context, TRUE, FALSE, time );
for( elem = uris; elem != NULL; elem = g_list_next( elem ) ) {
GnomeVFSURI *uri = elem->data;
elem->data = gnome_vfs_uri_to_string( uri, GNOME_VFS_URI_HIDE_NONE );
gnome_vfs_uri_unref( uri );
raw_data = elem->data;
/* decode %nn to plain character */
display_data = gnome_vfs_get_local_path_from_uri( raw_data );
/* get filename only */
display_data = g_path_get_basename( display_data );
/* make string to utf8 */
display_data = g_locale_to_utf8( display_data, -1, NULL, NULL, NULL );
...
}
====
but these API crash with mozilla href dnd, while nautilus dnd work.
and another serious problem is that only 1 item of uri list applied.
I don't understand why.
is there any standard API series to parse nautilus uri list,
and compatible to mozilla href dnd?
_______________________________________________
gnome-vfs maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/gnome-vfs