forked from AuroraMiddleware/gtk
dnd: Fix compiler warnings
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
This commit is contained in:
parent
29ab70b801
commit
2a0d5c39d9
@ -3776,16 +3776,16 @@ gtk_drag_source_event_cb (GtkWidget *widget,
|
||||
start_x + offset_x, start_y + offset_y))
|
||||
{
|
||||
GdkEventSequence *sequence;
|
||||
const GdkEvent *event;
|
||||
const GdkEvent *last_event;
|
||||
guint button;
|
||||
|
||||
sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (site->drag_gesture));
|
||||
event = gtk_gesture_get_last_event (site->drag_gesture, sequence);
|
||||
last_event = gtk_gesture_get_last_event (site->drag_gesture, sequence);
|
||||
button = gtk_gesture_single_get_current_button (GTK_GESTURE_SINGLE (site->drag_gesture));
|
||||
|
||||
gtk_event_controller_reset (GTK_EVENT_CONTROLLER (site->drag_gesture));
|
||||
gtk_drag_begin_internal (widget, site, site->target_list,
|
||||
site->actions, button, event,
|
||||
site->actions, button, last_event,
|
||||
start_x, start_y);
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user