[gtk+] dnd: Fix compiler warnings
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] dnd: Fix compiler warnings
- Date: Tue, 2 Jun 2015 13:10:40 +0000 (UTC)
commit 2a0d5c39d90add4c353a6400321f118ebeb1f47c
Author: Matthias Clasen <mclasen redhat com>
Date: Sat May 30 21:25:05 2015 -0400
dnd: Fix compiler warnings
Fix warnings due to -Wdeclaration-after-statement and -Wshadow.
gtk/gtkdnd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkdnd.c b/gtk/gtkdnd.c
index 59b883d..6c65e0b 100644
--- a/gtk/gtkdnd.c
+++ b/gtk/gtkdnd.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]