[cairo-commit] pycairo/examples/gtk png_view.py,1.4,1.5

Steve Chaplin commit at pdx.freedesktop.org
Wed May 4 18:35:15 PDT 2005


Committed by: stevech1097

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

Modified Files:
	png_view.py 
Log Message:
SC

Index: png_view.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/png_view.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- png_view.py	28 Apr 2005 01:46:36 -0000	1.4
+++ png_view.py	5 May 2005 01:35:13 -0000	1.5
@@ -16,7 +16,8 @@
         widget.window, widget.window.get_visual())
     ctx.set_target_surface (tsurface)
 
-    ctx.show_surface(surface, Width, Height)
+    ctx.set_source_surface(surface, 0,0)
+    ctx.paint()
 
 
 if len(sys.argv) != 2:




More information about the cairo-commit mailing list