pygtk r2971 - in trunk: . gtk



Author: gianmt
Date: Fri May  2 13:45:00 2008
New Revision: 2971
URL: http://svn.gnome.org/viewvc/pygtk?rev=2971&view=rev

Log:
wrap is_modifier for key press/release fixes #367970

Modified:
   trunk/ChangeLog
   trunk/gtk/gdkevent.override

Modified: trunk/gtk/gdkevent.override
==============================================================================
--- trunk/gtk/gdkevent.override	(original)
+++ trunk/gtk/gdkevent.override	Fri May  2 13:45:00 2008
@@ -186,6 +186,10 @@
 	    INT_CHECK();
 	    event->key.group = PyInt_AsLong(value);
 	    return 0;
+	} else if (!strcmp(attr, "is_modifier")) {
+	    INT_CHECK();
+	    event->key.is_modifier = PyInt_AsLong(value);
+	    return 0;
 	}
         break;
     case GDK_ENTER_NOTIFY:      /*GdkEventCrossing          crossing*/
@@ -568,7 +572,7 @@
             return Py_BuildValue("[sssssssss]",
                                  "type", "window", "send_event",
                                  "time", "state", "keyval", "string",
-				 "hardware_keycode", "group");
+				 "hardware_keycode", "group", "is_modifier");
         if (!strcmp(attr, "time"))
             return PyInt_FromLong(event->key.time);
         if (!strcmp(attr, "state"))
@@ -583,6 +587,8 @@
             return PyInt_FromLong(event->key.hardware_keycode);
         if (!strcmp(attr, "group"))
             return PyInt_FromLong(event->key.group);
+        if (!strcmp(attr, "is_modifier"))
+            return PyInt_FromLong(event->key.is_modifier);
         break;
     case GDK_ENTER_NOTIFY:      /*GdkEventCrossing          crossing*/
     case GDK_LEAVE_NOTIFY:      /*GdkEventCrossing          crossing*/



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