[vala] gdk-2.0: Fix types of several Gdk.Event*.state fields



commit 4617ba5d93275cafb34b8208ccea60b76576c191
Author: Evan Nemerson <evan coeus-group com>
Date:   Mon Jan 25 12:03:10 2010 -0800

    gdk-2.0: Fix types of several Gdk.Event*.state fields
    
    Fixes bug 607337.

 vapi/gdk-2.0.vapi                      |   10 +++++-----
 vapi/packages/gdk-2.0/gdk-2.0.metadata |    5 +++++
 2 files changed, 10 insertions(+), 5 deletions(-)
---
diff --git a/vapi/gdk-2.0.vapi b/vapi/gdk-2.0.vapi
index 08cfcf8..e143cbe 100644
--- a/vapi/gdk-2.0.vapi
+++ b/vapi/gdk-2.0.vapi
@@ -638,7 +638,7 @@ namespace Gdk {
 		public double x;
 		public double y;
 		public double axes;
-		public uint state;
+		public Gdk.ModifierType state;
 		public uint button;
 		public weak Gdk.Device device;
 		public double x_root;
@@ -677,7 +677,7 @@ namespace Gdk {
 		public Gdk.CrossingMode mode;
 		public Gdk.NotifyType detail;
 		public bool focus;
-		public uint state;
+		public Gdk.ModifierType state;
 	}
 	[CCode (type_id = "GDK_TYPE_EVENT_DND", cheader_filename = "gdk/gdk.h")]
 	public struct EventDND {
@@ -720,7 +720,7 @@ namespace Gdk {
 		public weak Gdk.Window window;
 		public char send_event;
 		public uint32 time;
-		public uint state;
+		public Gdk.ModifierType state;
 		public uint keyval;
 		public int length;
 		[CCode (cname = "string")]
@@ -768,7 +768,7 @@ namespace Gdk {
 		public char send_event;
 		public Gdk.Atom atom;
 		public uint32 time;
-		public uint state;
+		public Gdk.PropertyState state;
 	}
 	[CCode (type_id = "GDK_TYPE_EVENT_PROXIMITY", cheader_filename = "gdk/gdk.h")]
 	public struct EventProximity {
@@ -786,7 +786,7 @@ namespace Gdk {
 		public uint32 time;
 		public double x;
 		public double y;
-		public uint state;
+		public Gdk.ModifierType state;
 		public Gdk.ScrollDirection direction;
 		public weak Gdk.Device device;
 		public double x_root;
diff --git a/vapi/packages/gdk-2.0/gdk-2.0.metadata b/vapi/packages/gdk-2.0/gdk-2.0.metadata
index 513a81d..6e29aad 100644
--- a/vapi/packages/gdk-2.0/gdk-2.0.metadata
+++ b/vapi/packages/gdk-2.0/gdk-2.0.metadata
@@ -35,8 +35,13 @@ gdk_draw_rgb*_image*.buf no_array_length="1"
 gdk_draw_rgb*_image*.rgb_buf no_array_length="1"
 GdkEvent is_value_type="0"
 GdkEvent* is_value_type="1"
+GdkEventButton.state type_name="ModifierType"
+GdkEventCrossing.state type_name="ModifierType"
+GdkEventKey.state type_name="ModifierType"
 GdkEventMotion.is_hint type_name="bool"
 GdkEventMotion.state type_name="ModifierType"
+GdkEventProperty.state type_name="PropertyState"
+GdkEventScroll.state type_name="ModifierType"
 gdk_event_copy transfer_ownership="1"
 gdk_event_get_state.state is_out="1"
 gdk_event_get_axis.value is_out="1"



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