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/gtknotebook.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/gtknotebook.c')
-rw-r--r-- | gtk/gtknotebook.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c index 419b48cb95..4113482461 100644 --- a/gtk/gtknotebook.c +++ b/gtk/gtknotebook.c @@ -309,12 +309,12 @@ struct _GtkNotebookPage }; static const GtkTargetEntry src_notebook_targets [] = { - { (char *) "GTK_NOTEBOOK_TAB", GTK_TARGET_SAME_APP, 0 }, - { (char *) "application/x-rootwindow-drop", 0, 0 }, + { (char *) "GTK_NOTEBOOK_TAB", GTK_TARGET_SAME_APP }, + { (char *) "application/x-rootwindow-drop", 0 }, }; static const GtkTargetEntry dst_notebook_targets [] = { - { (char *) "GTK_NOTEBOOK_TAB", GTK_TARGET_SAME_APP, 0 }, + { (char *) "GTK_NOTEBOOK_TAB", GTK_TARGET_SAME_APP }, }; /*** GtkNotebook Methods ***/ @@ -402,14 +402,12 @@ static gboolean gtk_notebook_drag_drop (GtkWidget *widget, static void gtk_notebook_drag_data_get (GtkWidget *widget, GdkDragContext *context, GtkSelectionData *data, - guint info, guint time); static void gtk_notebook_drag_data_received (GtkWidget *widget, GdkDragContext *context, gint x, gint y, GtkSelectionData *data, - guint info, guint time); static void gtk_notebook_direction_changed (GtkWidget *widget, GtkTextDirection previous_direction); @@ -3274,7 +3272,6 @@ static void gtk_notebook_drag_data_get (GtkWidget *widget, GdkDragContext *context, GtkSelectionData *data, - guint info, guint time) { GtkNotebook *notebook = GTK_NOTEBOOK (widget); @@ -3304,7 +3301,6 @@ gtk_notebook_drag_data_received (GtkWidget *widget, gint x, gint y, GtkSelectionData *data, - guint info, guint time) { GtkNotebook *notebook; @@ -7137,7 +7133,6 @@ gtk_notebook_get_tab_detachable (GtkNotebook *notebook, * gint x, * gint y, * GtkSelectionData *data, - * guint info, * guint time, * gpointer user_data) * { |