[gtk+/xi2: 240/242] Add updated_device parameter to GdkMultiDeviceEvent.



commit b72157f1fbc970304ac006c03fe7633657df7e85
Author: Carlos Garnacho <carlos gnome org>
Date:   Mon Jan 11 13:00:09 2010 +0100

    Add updated_device parameter to GdkMultiDeviceEvent.
    
    if type is GTK_EVENT_DEVICE_REMOVED, updated_event is NULL, so knowing the
    device that was just removed is useful.

 gtk/gtkwidget.c |    1 +
 gtk/gtkwidget.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 5c09a61..85c59f8 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -4733,6 +4733,7 @@ compose_multidevice_event (GtkWidget               *widget,
   event.n_events = g_list_length (devices);
   event.events = g_new0 (GdkEventMotion *, event.n_events);
   event.updated_event = (GdkEventMotion *) updated_event;
+  event.updated_device = device;
 
   while (devices)
     {
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index cbe0873..83eb961 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -447,6 +447,7 @@ struct _GtkMultiDeviceEvent
   guint n_events;
   GdkEventMotion **events;
   GdkEventMotion *updated_event;
+  GdkDevice *updated_device;
 };
 
 struct _GtkWidgetAuxInfo



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]