Commit 34331f27 authored by Daniel Watkins's avatar Daniel Watkins

Added patch to correct the mis-spelling of 'Rhomboid' in the examples.

parent 2fa2528c
python-xlib (0.14-3) UNRELEASED; urgency=low
* Added patch to correct the mis-spelling of 'Rhomboid' in the examples.
-- Daniel Watkins <daniel@daniel-watkins.co.uk> Thu, 16 Oct 2008 14:38:39 +0100
python-xlib (0.14-2) unstable; urgency=low
[ Sandro Tosi ]
......
Index: python-xlib-0.14/examples/draw.py
===================================================================
--- python-xlib-0.14.orig/examples/draw.py 2008-10-16 14:35:25.000000000 +0100
+++ python-xlib-0.14/examples/draw.py 2008-10-16 14:36:35.000000000 +0100
@@ -117,7 +117,7 @@
sys.exit(0)
# A drawed objects, consisting of either a single
-# romboid, or two romboids connected by a winding line
+# rhomboid, or two rhomboids connected by a winding line
class Movement:
def __init__(self, win, ev):
@@ -131,7 +131,7 @@
self.time = ev.time
self.lines = [(ev.event_x, ev.event_y)]
- self.first = Romboid(self.win, ev)
+ self.first = Rhomboid(self.win, ev)
self.last = None
def motion(self, ev):
@@ -187,7 +187,7 @@
def finish(self, ev):
self.motion(ev)
if len(self.lines) > 1:
- self.last = Romboid(self.win, ev)
+ self.last = Rhomboid(self.win, ev)
self.left = min(ev.event_x - 5, self.left)
self.right = max(ev.event_x + 5, self.right)
@@ -209,8 +209,8 @@
self.last.draw()
-# A romboid, drawed around the Movement endpoints
-class Romboid:
+# A rhomboid, drawed around the Movement endpoints
+class Rhomboid:
def __init__(self, win, ev):
self.win = win
self.x = ev.event_x
@@ -218,7 +218,7 @@
self.draw()
def draw(self):
- # Draw the segments of the romboid
+ # Draw the segments of the rhomboid
self.win.window.poly_line(self.win.gc, X.CoordModePrevious,
[(self.x, self.y - 5),
(5, 5),
Index: python-xlib-0.14/examples/draw-proto.py
===================================================================
--- python-xlib-0.14.orig/examples/draw-proto.py 2008-10-16 14:35:25.000000000 +0100
+++ python-xlib-0.14/examples/draw-proto.py 2008-10-16 14:36:42.000000000 +0100
@@ -106,7 +106,7 @@
current.motion(e)
# A drawed objects, consisting of either a single
-# romboid, or two romboids connected by a winding line
+# rhomboid, or two rhomboids connected by a winding line
class Movement:
def __init__(self, win, ev):
@@ -120,7 +120,7 @@
self.time = ev.time
self.lines = [(ev.event_x, ev.event_y)]
- self.first = Romboid(self.win, ev)
+ self.first = Rhomboid(self.win, ev)
self.last = None
def motion(self, ev):
@@ -183,7 +183,7 @@
def finish(self, ev):
self.motion(ev)
if len(self.lines) > 1:
- self.last = Romboid(self.win, ev)
+ self.last = Rhomboid(self.win, ev)
self.left = min(ev.event_x - 5, self.left)
self.right = max(ev.event_x + 5, self.right)
@@ -207,8 +207,8 @@
self.last.draw()
-# A romboid, drawed around the Movement endpoints
-class Romboid:
+# A rhomboid, drawed around the Movement endpoints
+class Rhomboid:
def __init__(self, win, ev):
self.win = win
self.x = ev.event_x
@@ -216,7 +216,7 @@
self.draw()
def draw(self):
- # Draw the segments of the romboid
+ # Draw the segments of the rhomboid
PolyLine(self.win.d, None,
X.CoordModePrevious,
self.win.window,
......@@ -3,3 +3,4 @@ increase-receiving-buffer
add-texinfo-dir-entry
add-texinfo-makefile
fix-ssh-tunnel-auth
fix-rhomboid-examples
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment