On Mon, 07 Nov 2005 09:32:05 +0100, Alexander Larsson wrote:

> 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.

That's excellent news! I've updated the DnD warts wiki page[1] linked from
the bug report to mention them, and I'll get the ROX stuff using them once
we move to GTK 2.6.

[1] http://freedesktop.org/wiki/Draganddropwarts


-- 
Dr Thomas Leonard               http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6  8B9A AE07 8280 59A5 3CC1


_______________________________________________
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list

Reply via email to