[cairo-commit] pycairo/examples/gtk png_view.py,1.1,1.2
Steve Chaplin
commit at pdx.freedesktop.org
Sat Apr 9 00:28:18 PDT 2005
Committed by: stevech1097
Update of /cvs/cairo/pycairo/examples/gtk
In directory gabe:/tmp/cvs-serv12533/examples/gtk
Modified Files:
png_view.py
Log Message:
SC 2005/04/09
Index: png_view.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/gtk/png_view.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- png_view.py 5 Apr 2005 02:24:17 -0000 1.1
+++ png_view.py 9 Apr 2005 07:28:16 -0000 1.2
@@ -28,13 +28,12 @@
file_object = file(filename)
surface, wh = cairo.Surface.create_for_png(file_object)
Width, Height = wh
+ file_object.close()
except Exception, exc:
raise SystemExit(exc)
win = gtk.Window()
win.connect('destroy', lambda x: gtk.main_quit())
-# TODO: fix seg fault on exit
-# - problem with cairo.Surface.create_for_png(file_object) ref count?
drawingarea = gtk.DrawingArea()
win.add(drawingarea)
@@ -44,3 +43,7 @@
win.show_all()
gtk.main()
+
+# TODO: seg fault on exit caused by cairo_image_surface.create_for_png()
+# calling fclose()
+#print 'end of script'
More information about the cairo-commit
mailing list