From 3f5178dc210f3d88b1b0b08ce671565becf3fd7d Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 16 Nov 2017 22:50:37 +0100 Subject: 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. --- gtk/gtkselection.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'gtk/gtkselection.h') 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, -- cgit v1.2.1