diff options
author | Benjamin Otte <otte@redhat.com> | 2017-11-16 22:50:37 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-11-16 22:59:43 +0100 |
commit | 3f5178dc210f3d88b1b0b08ce671565becf3fd7d (patch) | |
tree | 6710aad32c0c9a6a89d5e2b8c09b5684c3429f4d /gtk/gtkselection.h | |
parent | 5da3059175a79b8b4e501ae05886f9b54f42489d (diff) | |
download | gtk+-3f5178dc210f3d88b1b0b08ce671565becf3fd7d.tar.gz |
selection: Remove the info uint
Instead of allowing people to pass a uint user-data, insist on them
comparing mime types.
The user data was a uint instead of a pointer anyway, so uniqueness
could not be guaranteed and it caused more issues than it was worth.
And that's ignoring the fact that it basically wasn't used.
Diffstat (limited to 'gtk/gtkselection.h')
-rw-r--r-- | gtk/gtkselection.h | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/gtk/gtkselection.h b/gtk/gtkselection.h index 11680fad74..9e95c2a9cb 100644 --- a/gtk/gtkselection.h +++ b/gtk/gtkselection.h @@ -53,7 +53,6 @@ struct _GtkTargetPair { GdkAtom target; guint flags; - guint info; }; /** @@ -107,7 +106,6 @@ struct _GtkTargetEntry { gchar *target; guint flags; - guint info; }; GDK_AVAILABLE_IN_ALL @@ -125,23 +123,18 @@ void gtk_target_list_merge (GtkTargetList *target, GDK_AVAILABLE_IN_ALL void gtk_target_list_add (GtkTargetList *list, GdkAtom target, - guint flags, - guint info); + guint flags); GDK_AVAILABLE_IN_ALL -void gtk_target_list_add_text_targets (GtkTargetList *list, - guint info); +void gtk_target_list_add_text_targets (GtkTargetList *list); GDK_AVAILABLE_IN_ALL void gtk_target_list_add_rich_text_targets (GtkTargetList *list, - guint info, gboolean deserializable, GtkTextBuffer *buffer); GDK_AVAILABLE_IN_ALL void gtk_target_list_add_image_targets (GtkTargetList *list, - guint info, gboolean writable); GDK_AVAILABLE_IN_ALL -void gtk_target_list_add_uri_targets (GtkTargetList *list, - guint info); +void gtk_target_list_add_uri_targets (GtkTargetList *list); GDK_AVAILABLE_IN_ALL void gtk_target_list_add_table (GtkTargetList *list, const GtkTargetEntry *targets, @@ -151,8 +144,7 @@ void gtk_target_list_remove (GtkTargetList *list, GdkAtom target); GDK_AVAILABLE_IN_ALL gboolean gtk_target_list_find (GtkTargetList *list, - GdkAtom target, - guint *info); + GdkAtom target); GDK_AVAILABLE_IN_ALL gboolean gtk_selection_owner_set (GtkWidget *widget, @@ -167,8 +159,7 @@ gboolean gtk_selection_owner_set_for_display (GdkDisplay *display, GDK_AVAILABLE_IN_ALL void gtk_selection_add_target (GtkWidget *widget, GdkAtom selection, - GdkAtom target, - guint info); + GdkAtom target); GDK_AVAILABLE_IN_ALL void gtk_selection_add_targets (GtkWidget *widget, GdkAtom selection, |