[cairo-commit]
pycairo/examples/cairo_snippets snippets_gtk.py, 1.15, 1.16
Steve Chaplin
commit at pdx.freedesktop.org
Thu Dec 21 03:36:50 PST 2006
- Previous message: [cairo-commit] pycairo/examples/gtk cairo-demo.py, 1.9,
1.10 cairo-knockout.py, 1.13, 1.14 hangman.py, 1.9,
1.10 lsystem.py, 1.8, 1.9 png_view.py, 1.10, 1.11 text.py, 1.9, 1.10
- Next message: [cairo-commit] rcairo ChangeLog,1.103,1.104
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: stevech1097
Update of /cvs/cairo/pycairo/examples/cairo_snippets
In directory kemper:/tmp/cvs-serv7460/examples/cairo_snippets
Modified Files:
snippets_gtk.py
Log Message:
'SC'
Index: snippets_gtk.py
===================================================================
RCS file: /cvs/cairo/pycairo/examples/cairo_snippets/snippets_gtk.py,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- snippets_gtk.py 4 Aug 2006 02:24:21 -0000 1.15
+++ snippets_gtk.py 21 Dec 2006 11:36:46 -0000 1.16
@@ -7,9 +7,6 @@
import cairo
import gtk
-if gtk.pygtk_version < (2,7,0):
- import cairo.gtk
-
import pango
from snippets import snip_list, snippet_normalize
@@ -59,10 +56,7 @@
def da_expose_event (self, da, event, data=None):
x, y, width, height = da.allocation
- if gtk.pygtk_version < (2,7,0):
- cr = cairo.gtk.gdk_cairo_create (da.window)
- else:
- cr = da.window.cairo_create()
+ cr = da.window.cairo_create()
try:
exec (self.snippet_str, globals(), locals())
- Previous message: [cairo-commit] pycairo/examples/gtk cairo-demo.py, 1.9,
1.10 cairo-knockout.py, 1.13, 1.14 hangman.py, 1.9,
1.10 lsystem.py, 1.8, 1.9 png_view.py, 1.10, 1.11 text.py, 1.9, 1.10
- Next message: [cairo-commit] rcairo ChangeLog,1.103,1.104
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list