Revision: 3717
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=3717&view=rev
Author: mdboom
Date: 2007-08-20 05:47:42 -0700 (Mon, 20 Aug 2007)
Log Message:
-----------
Take a version check out of the method call. Thanks to Fernando Perez.
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/backends/backend_gtkcairo.py
Modified: trunk/matplotlib/lib/matplotlib/backends/backend_gtkcairo.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/backends/backend_gtkcairo.py
2007-08-20 12:46:53 UTC (rev 3716)
+++ trunk/matplotlib/lib/matplotlib/backends/backend_gtkcairo.py
2007-08-20 12:47:42 UTC (rev 3717)
@@ -29,12 +29,14 @@
class RendererGTKCairo (backend_cairo.RendererCairo):
- def set_pixmap (self, pixmap):
- if gtk.pygtk_version >= (2,7,0):
+ if gtk.pygtk_version >= (2,7,0):
+ def set_pixmap (self, pixmap):
self.ctx = pixmap.cairo_create()
- else:
+ self.ctx.save() # restore, save - when call new_gc()
+ else:
+ def set_pixmap (self, pixmap):
self.ctx = cairo.gtk.gdk_cairo_create (pixmap)
- self.ctx.save() # restore, save - when call new_gc()
+ self.ctx.save() # restore, save - when call new_gc()
class FigureCanvasGTKCairo(FigureCanvasGTK):
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins