pygtk r2965 - in trunk: . gtk
- From: paulp svn gnome org
- To: svn-commits-list gnome org
- Subject: pygtk r2965 - in trunk: . gtk
- Date: Mon, 24 Mar 2008 18:33:23 +0000 (GMT)
Author: paulp
Date: Mon Mar 24 18:33:22 2008
New Revision: 2965
URL: http://svn.gnome.org/viewvc/pygtk?rev=2965&view=rev
Log:
2008-03-24 Paul Pogonyshev <pogonyshev gmx net>
* gtk/gdkevent.override (_wrap_gdk_event_tp_setattr): Fix several
bugs wrt 'y_root' caused by copy-paste (bug #519631).
Modified:
trunk/ChangeLog
trunk/gtk/gdkevent.override
Modified: trunk/gtk/gdkevent.override
==============================================================================
--- trunk/gtk/gdkevent.override (original)
+++ trunk/gtk/gdkevent.override Mon Mar 24 18:33:22 2008
@@ -115,7 +115,7 @@
return 0;
} else if (!strcmp(attr, "y_root")) {
FLOAT_CHECK()
- event->motion.x_root = PyFloat_AsDouble(value);
+ event->motion.y_root = PyFloat_AsDouble(value);
return 0;
}
break;
@@ -155,7 +155,7 @@
return 0;
} else if (!strcmp(attr, "y_root")) {
FLOAT_CHECK();
- event->button.x_root = PyFloat_AsDouble(value);
+ event->button.y_root = PyFloat_AsDouble(value);
return 0;
}
break;
@@ -217,7 +217,7 @@
return 0;
} else if (!strcmp(attr, "y_root")) {
FLOAT_CHECK();
- event->crossing.x_root = PyFloat_AsDouble(value);
+ event->crossing.y_root = PyFloat_AsDouble(value);
return 0;
} else if (!strcmp(attr, "mode")) {
INT_CHECK();
@@ -331,7 +331,7 @@
return 0;
} else if (!strcmp(attr, "y_root")) {
FLOAT_CHECK();
- event->dnd.x_root = PyFloat_AsDouble(value);
+ event->dnd.y_root = PyFloat_AsDouble(value);
return 0;
}
break;
@@ -394,7 +394,7 @@
return 0;
} else if (!strcmp(attr, "y_root")) {
FLOAT_CHECK();
- event->scroll.x_root = PyFloat_AsDouble(value);
+ event->scroll.y_root = PyFloat_AsDouble(value);
return 0;
}
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]