diff options
author | Benjamin Otte <otte@redhat.com> | 2017-12-11 22:26:26 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2017-12-12 00:29:51 +0100 |
commit | 756b276070679497937e5c62fe586e73d0e2e61e (patch) | |
tree | 106e12e24ad6d1f8ca0048f77915efff162c5853 /gtk/gtkcalendar.c | |
parent | 1e4aeb2efb55feeb2eb2d939869534ccb879ca5a (diff) | |
download | gtk+-756b276070679497937e5c62fe586e73d0e2e61e.tar.gz |
dnd: Remove button argument from drag_begin()
It was unused.
Diffstat (limited to 'gtk/gtkcalendar.c')
-rw-r--r-- | gtk/gtkcalendar.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk/gtkcalendar.c b/gtk/gtkcalendar.c index e7dc10c75b..f3e20a050c 100644 --- a/gtk/gtkcalendar.c +++ b/gtk/gtkcalendar.c @@ -2667,7 +2667,6 @@ gtk_calendar_drag_update (GtkGestureDrag *gesture, GdkContentFormats *targets; GdkEventSequence *sequence; GdkEvent *last_event; - guint button; if (!priv->in_drag) return; @@ -2680,13 +2679,12 @@ gtk_calendar_drag_update (GtkGestureDrag *gesture, sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture)); last_event = gdk_event_copy (gtk_gesture_get_last_event (GTK_GESTURE (gesture), sequence)); - button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (gesture)); gtk_event_controller_reset (GTK_EVENT_CONTROLLER (gesture)); targets = gdk_content_formats_new (NULL, 0); targets = gtk_content_formats_add_text_targets (targets); context = gtk_drag_begin_with_coordinates (widget, targets, GDK_ACTION_COPY, - button, last_event, + last_event, start_x, start_y); priv->in_drag = 0; |