[cairo-commit] pycairo/examples/gtk cairo-demo.py, 1.6, 1.7 cairo-knockout.py, 1.10, 1.11 lsystem.py, 1.6, 1.7 png_view.py, 1.8, 1.9 text.py, 1.7, 1.8

Steve Chaplin commit at pdx.freedesktop.org
Tue Aug 9 07:37:58 PDT 2005


Committed by: stevech1097

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

Modified Files:
	cairo-demo.py cairo-knockout.py lsystem.py png_view.py text.py 
Log Message:
'SC'

Index: cairo-demo.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/cairo-demo.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cairo-demo.py	22 Jun 2005 00:48:07 -0000	1.6
+++ cairo-demo.py	9 Aug 2005 14:37:55 -0000	1.7
@@ -119,8 +119,7 @@
     drawingarea = gtk.DrawingArea()
     win.add(drawingarea)
     drawingarea.connect('expose_event', expose)
-    drawingarea.set_double_buffered(False)
-    
+
     win.show_all()
     gtk.main()
 

Index: cairo-knockout.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/cairo-knockout.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- cairo-knockout.py	24 Jul 2005 14:27:25 -0000	1.10
+++ cairo-knockout.py	9 Aug 2005 14:37:55 -0000	1.11
@@ -21,7 +21,7 @@
     ctx.close_path ()
 
     ctx.restore()
-    
+
 def fill_checks(ctx, x, y, width, height):
     CHECK_SIZE = 32
 
@@ -66,7 +66,7 @@
     radius = 0.5 * min(width, height) - 10
     xc = width / 2.
     yc = height / 2.
-    
+
     target  = ctx.get_target()
     overlay = target.create_similar(cairo.CONTENT_COLOR_ALPHA, width, height)
     punch   = target.create_similar(cairo.CONTENT_ALPHA, width, height)
@@ -93,7 +93,7 @@
     # at half intensity, and use OperatorAdd to join up
     # without seams.
     circles_cr = cairo.Context (circles)
-  
+
     circles_cr.set_operator (cairo.OPERATOR_OVER)
     draw_3circles (circles_cr, xc, yc, radius, 0.5)
 
@@ -103,12 +103,12 @@
 
     ctx.set_source_surface (overlay, 0, 0)
     ctx.paint()
-    
+
 def expose(drawingarea, event):
     ctx = cairo.gtk.gdk_cairo_create(drawingarea.window)
 
     draw (ctx, drawingarea.allocation.width, drawingarea.allocation.height)
-                                         
+
     return False
 
 def main():
@@ -120,8 +120,7 @@
     drawingarea = gtk.DrawingArea()
     win.add(drawingarea)
     drawingarea.connect('expose_event', expose)
-    drawingarea.set_double_buffered(False)
-    
+
     win.show_all()
     gtk.main()
 

Index: lsystem.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/lsystem.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- lsystem.py	22 Jun 2005 00:48:07 -0000	1.6
+++ lsystem.py	9 Aug 2005 14:37:55 -0000	1.7
@@ -29,8 +29,8 @@
 
         drawable.clear()
 
-        ctx = cairo.gtk.gdk_cairo_create(drawable)        
-        
+        ctx = cairo.gtk.gdk_cairo_create(drawable)
+
         ctx.set_source_rgb(0, 0, 0)
 
         ctx.set_line_width(self.SIZE / 4)
@@ -119,7 +119,6 @@
     drawingarea = gtk.DrawingArea()
     win.add(drawingarea)
     drawingarea.connect('expose_event', cls.expose)
-    drawingarea.set_double_buffered(False)
 
     win.show_all()
     gtk.main()

Index: png_view.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/png_view.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- png_view.py	19 May 2005 04:47:56 -0000	1.8
+++ png_view.py	9 Aug 2005 14:37:55 -0000	1.9
@@ -10,7 +10,7 @@
 
 def expose_event(widget, event, surface):
     widget.window.clear()
-    
+
     ctx = cairo.gtk.gdk_cairo_create(widget.window)
     ctx.set_source_surface(surface, 0,0)
     ctx.paint()
@@ -32,7 +32,6 @@
 win.add(drawingarea)
 drawingarea.connect('expose_event', expose_event, surface)
 drawingarea.set_size_request(Width,Height)
-drawingarea.set_double_buffered(False)
-    
+
 win.show_all()
 gtk.main()

Index: text.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/text.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- text.py	22 Jun 2005 00:48:07 -0000	1.7
+++ text.py	9 Aug 2005 14:37:55 -0000	1.8
@@ -6,9 +6,9 @@
 
 def expose_event(widget, event):
     widget.window.clear()
-    
+
     ctx = cairo.gtk.gdk_cairo_create(widget.window)
-    
+
     ctx.set_line_width(6)
     ctx.set_tolerance(.1)
 
@@ -38,7 +38,6 @@
 win.add(drawingarea)
 drawingarea.connect('expose_event', expose_event)
 drawingarea.set_size_request(400,150)
-drawingarea.set_double_buffered(False)
-    
+
 win.show_all()
 gtk.main()




More information about the cairo-commit mailing list