summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Tse <liquidx@gentoo.org>2004-02-14 12:45:22 +0000
committerAlastair Tse <liquidx@gentoo.org>2004-02-14 12:45:22 +0000
commitaf6a52beb275789cf8f67c12c97b757e206f8c8b (patch)
treea2c46b353f85fea4ee3b814a6f1a68e7f4bd6a44 /dev-python/pygtkglext/files
parentunpeg adns-python depends and cleanup (Manifest recommit) (diff)
downloadgentoo-2-af6a52beb275789cf8f67c12c97b757e206f8c8b.tar.gz
gentoo-2-af6a52beb275789cf8f67c12c97b757e206f8c8b.tar.bz2
gentoo-2-af6a52beb275789cf8f67c12c97b757e206f8c8b.zip
add fixes to pygtkglext examples (#38406)
Diffstat (limited to 'dev-python/pygtkglext/files')
-rw-r--r--dev-python/pygtkglext/files/pygtkglext-1.0.1-gentoo.diff44
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-python/pygtkglext/files/pygtkglext-1.0.1-gentoo.diff b/dev-python/pygtkglext/files/pygtkglext-1.0.1-gentoo.diff
new file mode 100644
index 000000000000..1ba375667c52
--- /dev/null
+++ b/dev-python/pygtkglext/files/pygtkglext-1.0.1-gentoo.diff
@@ -0,0 +1,44 @@
+diff -u examples.old/coolwave.py examples/coolwave.py
+--- examples.old/coolwave.py 2004-01-18 11:35:37.000000000 +0100
++++ examples/coolwave.py 2004-01-18 11:54:32.000000000 +0100
+@@ -246,10 +246,10 @@
+ pass
+
+ def button_motion (self, width, height, event):
+- if event.state == gtk.gdk.BUTTON1_MASK:
++ if event.state & gtk.gdk.BUTTON1_MASK:
+ self.__sphi += (event.x - self.__beginX)/4.0
+ self.__stheta += (self.__beginY - event.y)/4.0
+- elif event.state == gtk.gdk.BUTTON2_MASK:
++ elif event.state & gtk.gdk.BUTTON2_MASK:
+ self.__sdepth += (self.__beginY - event.y)/10.0
+ self.__beginX = event.x
+ self.__beginY = event.y
+diff -u examples.old/Shapes.py examples/Shapes.py
+--- examples.old/Shapes.py 2004-01-18 11:35:37.000000000 +0100
++++ examples/Shapes.py 2004-01-18 11:54:32.000000000 +0100
+@@ -209,10 +209,10 @@
+ pass
+
+ def button_motion(self, width, height, event):
+- if event.state == gtk.gdk.BUTTON1_MASK:
++ if event.state & gtk.gdk.BUTTON1_MASK:
+ self.rotx = self.rotx + ((event.y-self.beginy)/width)*360.0
+ self.roty = self.roty + ((event.x-self.beginx)/height)*360.0
+- elif event.state == gtk.gdk.BUTTON2_MASK:
++ elif event.state & gtk.gdk.BUTTON2_MASK:
+ self.depth = self.depth - ((event.y-self.beginy)/(height))*50.0;
+
+ if self.depth > 130.0: self.depth = 130.0;
+diff -u examples.old/teapot2.py examples/teapot2.py
+--- examples.old/teapot2.py 2004-01-18 11:35:37.000000000 +0100
++++ examples/teapot2.py 2004-01-18 11:54:32.000000000 +0100
+@@ -79,7 +79,7 @@
+ pass
+
+ def button_motion(self, width, height, event):
+- if event.state == gtk.gdk.BUTTON1_MASK:
++ if event.state & gtk.gdk.BUTTON1_MASK:
+ self.rotx = self.rotx + ((event.y-self.beginy)/width)*360.0
+ self.roty = self.roty + ((event.x-self.beginx)/height)*360.0
+