After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 314092 - Add gtk_selection_data_targets_include_uri_list
Add gtk_selection_data_targets_include_uri_list
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: Other
2.6.x
Other All
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-08-21 14:34 UTC by Mark Wielaard
Modified: 2011-02-04 16:10 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Mark Wielaard 2005-08-21 14:34:13 UTC
When the GtkClipboardReceivedFunc () callback is called it is easy to see if the
request is for text or images through gtk_selection_data_targets_include_text ()
and gtk_selection_data_targets_include_image () but to see if the request is for
an text/uri-list one has to transform the GtkSelectionData target_data to a
GdkAtom array list, create a gdk_atom for text/uri-list and iterate through the
array by hand.

Since there is already a gtk_target_list_add_uri_targets () it would be a nice
abstraction if there was a counterpart
gtk_selection_data_targets_include_uri_list () function so one doesn't have to
know how a uri or file list is represented on the platform clipboard.
Comment 1 Matthias Clasen 2005-08-30 05:08:45 UTC
2005-08-30  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols: 
	* gtk/gtkselection.h:
	* gtk/gtkselection.c (gtk_selection_data_targets_include_uri): 
	Add a function to check wether targets include uri.  
	(#314092, Mark Wielaard)