[cairo-commit] pycairo/examples cairo-knockout.py, 1.4, 1.5 text.py, 1.7, 1.8 .cvsignore, 1.4, 1.5

Steve Chaplin commit at pdx.freedesktop.org
Tue Jan 11 19:45:06 PST 2005


Committed by: stevech1097

Update of /cvs/cairo/pycairo/examples
In directory gabe:/tmp/cvs-serv16670/examples

Modified Files:
	cairo-knockout.py text.py .cvsignore 
Log Message:
SC 2005/01/12

Index: cairo-knockout.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo-knockout.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cairo-knockout.py	4 Nov 2004 14:45:35 -0000	1.4
+++ cairo-knockout.py	12 Jan 2005 03:45:04 -0000	1.5
@@ -11,7 +11,6 @@
 
 def oval_path(ctx, xc, yc, xr, yr):
     matrix = cairo.Matrix ()
-    #cairo_current_matrix (cr, matrix);
 
     ctx.translate (xc, yc)
     ctx.scale (1.0, yr / xr)
@@ -82,6 +81,9 @@
     ctx.fill()
 
 def expose(drawingarea, event):
+    # a bug is highlighted when the window is obscured - the next expose event
+    # does not redraw the window properly.
+    # If you draw to a gdk.Pixmap first the problem does not appear
     drawable = drawingarea.window
     width = drawingarea.allocation.width
     height = drawingarea.allocation.height

Index: text.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/text.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- text.py	14 Nov 2004 13:04:00 -0000	1.7
+++ text.py	12 Jan 2005 03:45:04 -0000	1.8
@@ -33,7 +33,7 @@
 win.set_title('Cairo Demo')
 
 drawingarea = gtk.DrawingArea()
-drawingarea.set_size_request(400,100)
+drawingarea.set_size_request(400,150)
 win.add(drawingarea)
 
 win.show_all()

Index: .cvsignore
===================================================================
RCS file: /cvs/cairo/pycairo/examples/.cvsignore,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- .cvsignore	24 Nov 2004 02:16:28 -0000	1.4
+++ .cvsignore	12 Jan 2005 03:45:04 -0000	1.5
@@ -1,3 +1,4 @@
+*.pdf
 *.pyc
 *.pyo
 *.png




More information about the cairo-commit mailing list