Re: Implementing XDS at GTK+ level?
- From: Thomas Leonard <tal ecs soton ac uk>
- To: gtk-devel-list gnome org
- Subject: Re: Implementing XDS at GTK+ level?
- Date: Mon, 07 Nov 2005 19:52:12 +0000
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 linked from
the bug report to mention them, and I'll get the ROX stuff using them once
we move to GTK 2.6.
Dr Thomas Leonard http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1
] [Thread Prev