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 314089 - gtk_clipboard_request_targets () prevents use of gtk_selection_data_targets_include_<x> functions
gtk_clipboard_request_targets () prevents use of gtk_selection_data_targets_i...
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:26 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:26:09 UTC
gtk_clipboard_request_targets () and gtk_clipboard_wait_targets () an array of
GdkAtoms. This means they cannot be used together with the
gtk_selection_data_targets_include_text () and
gtk_selection_data_targets_include_image () since those take GtkSelectionData.

To make gtk_clipboard_request_targets () useful a function to turn an array of
GdkAtoms into a GtkSelectionData or variants of
gtk_selection_data_targets_include_<x> () functions that take an array of
GdkAtoms would be needed.
Comment 1 Matthias Clasen 2005-08-22 20:26:41 UTC
I wouldn't say that gtk_clipboard_request_targets() is not useful, but something
like 

gboolean gtk_targets_include_text (GdkAtom *targets, gint n_targets)

might make it more useful.
Comment 2 Matthias Clasen 2005-08-30 05:42:48 UTC
2005-08-30  Matthias Clasen  <mclasen@redhat.com>

	* gtk/gtk.symbols: 
	* gtk/gtkselection.h:
	* gtk/gtkselection.c: Add functions which look for text, image
	or uri targets in an array of atoms.   (#314089, Mark Wielaard)