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/gtkdragsource.c | |
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/gtkdragsource.c')
-rw-r--r-- | gtk/gtkdragsource.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk/gtkdragsource.c b/gtk/gtkdragsource.c index b60f984f57..6a22db646d 100644 --- a/gtk/gtkdragsource.c +++ b/gtk/gtkdragsource.c @@ -290,7 +290,7 @@ gtk_drag_source_add_text_targets (GtkWidget *widget) gtk_target_list_ref (target_list); else target_list = gtk_target_list_new (NULL, 0); - gtk_target_list_add_text_targets (target_list, 0); + gtk_target_list_add_text_targets (target_list); gtk_drag_source_set_target_list (widget, target_list); gtk_target_list_unref (target_list); } @@ -317,7 +317,7 @@ gtk_drag_source_add_image_targets (GtkWidget *widget) gtk_target_list_ref (target_list); else target_list = gtk_target_list_new (NULL, 0); - gtk_target_list_add_image_targets (target_list, 0, TRUE); + gtk_target_list_add_image_targets (target_list, TRUE); gtk_drag_source_set_target_list (widget, target_list); gtk_target_list_unref (target_list); } @@ -344,7 +344,7 @@ gtk_drag_source_add_uri_targets (GtkWidget *widget) gtk_target_list_ref (target_list); else target_list = gtk_target_list_new (NULL, 0); - gtk_target_list_add_uri_targets (target_list, 0); + gtk_target_list_add_uri_targets (target_list); gtk_drag_source_set_target_list (widget, target_list); gtk_target_list_unref (target_list); } |