[cairo-commit] pycairo/examples/gtk cairo-demo.py, 1.4, 1.5 cairo-knockout.py, 1.7, 1.8 hangman.py, 1.5, 1.6 lsystem.py, 1.4, 1.5 png_view.py, 1.6, 1.7 text.py, 1.5, 1.6

Steve Chaplin commit at pdx.freedesktop.org
Sun May 15 18:04:39 PDT 2005


Committed by: stevech1097

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

Modified Files:
	cairo-demo.py cairo-knockout.py hangman.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.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- cairo-demo.py	9 May 2005 00:52:47 -0000	1.4
+++ cairo-demo.py	16 May 2005 01:04:34 -0000	1.5
@@ -85,7 +85,7 @@
 
     drawable.clear()
 
-    ctx = cairo.gtk.create_cairo_context(drawable)
+    ctx = cairo.gtk.gdk_cairo_create(drawable)
     ctx.set_source_rgb(0, 0, 0)
 
     ctx.set_line_width(SIZE / 4)

Index: cairo-knockout.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/cairo-knockout.py,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- cairo-knockout.py	11 May 2005 06:22:53 -0000	1.7
+++ cairo-knockout.py	16 May 2005 01:04:34 -0000	1.8
@@ -104,7 +104,7 @@
     ctx.paint()
     
 def expose(drawingarea, event):
-    ctx = cairo.gtk.create_cairo_context(drawingarea.window)
+    ctx = cairo.gtk.gdk_cairo_create(drawingarea.window)
 
     draw (ctx, drawingarea.allocation.width, drawingarea.allocation.height)
                                          

Index: hangman.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/hangman.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- hangman.py	9 May 2005 00:52:47 -0000	1.5
+++ hangman.py	16 May 2005 01:04:34 -0000	1.6
@@ -66,7 +66,7 @@
 
     pixmap = gtk.gdk.Pixmap (widget.window, width, height)
     
-    ctx = cairo.gtk.create_cairo_context(pixmap)
+    ctx = cairo.gtk.gdk_cairo_create(pixmap)
     
     # set the background
     ctx.set_source_rgb(0.7,0.7,0.7)

Index: lsystem.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/lsystem.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- lsystem.py	9 May 2005 00:52:47 -0000	1.4
+++ lsystem.py	16 May 2005 01:04:34 -0000	1.5
@@ -29,7 +29,7 @@
 
         drawable.clear()
 
-        ctx = cairo.gtk.create_cairo_context(drawable)        
+        ctx = cairo.gtk.gdk_cairo_create(drawable)        
         
         ctx.set_source_rgb(0, 0, 0)
 

Index: png_view.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/png_view.py,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- png_view.py	9 May 2005 00:52:47 -0000	1.6
+++ png_view.py	16 May 2005 01:04:34 -0000	1.7
@@ -11,7 +11,7 @@
 def expose_event(widget, event, surface):
     widget.window.clear()
     
-    ctx = cairo.gtk.create_cairo_context(widget.window)
+    ctx = cairo.gtk.gdk_cairo_create(widget.window)
     ctx.set_source_surface(surface, 0,0)
     ctx.paint()
 

Index: text.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/text.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- text.py	9 May 2005 00:52:47 -0000	1.5
+++ text.py	16 May 2005 01:04:34 -0000	1.6
@@ -7,7 +7,7 @@
 def expose_event(widget, event):
     widget.window.clear()
     
-    ctx = cairo.gtk.create_cairo_context(widget.window)
+    ctx = cairo.gtk.gdk_cairo_create(widget.window)
     
     ctx.set_line_width(6)
     ctx.set_tolerance(.1)




More information about the cairo-commit mailing list