On Sat, 2005-11-05 at 18:31 +0000, Thomas Leonard wrote: > Probably the most useful function is having GTK extract the local file > names from the uri-list, as this is rather error-prone (some apps don't > cope well with hostnames currently, for example). Likewise, we could do > with a GTK function to create a text/uri-list from a list of local files > (many apps get the line endings wrong).
Gtk+ already has stuff for this. gtk_selection_data_get_uris() and g_filename_from_uri() does the decoding. You can also use g_uri_list_extract_uris() directly. gtk_selection_data_set_uris() does encoding. =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Alexander Larsson Red Hat, Inc [EMAIL PROTECTED] [EMAIL PROTECTED] He's a maverick drug-addicted firefighter on the edge. She's a violent goth vampire with an incredible destiny. They fight crime! _______________________________________________ gtk-devel-list mailing list gtk-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-devel-list