GNOME Bugzilla – Bug 314089
gtk_clipboard_request_targets () prevents use of gtk_selection_data_targets_include_<x> functions
Last modified: 2011-02-04 16:10:23 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.
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.
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)