On Tue, Nov 9, 2010 at 3:48 PM, Eric Firing <efir...@hawaii.edu> wrote:
> On 11/09/2010 11:03 AM, John Hunter wrote:

> Based on a very superficial look, I suspect we could eliminate
> pixbuf_get_pixels_array by using the function
> http://www.pygtk.org/docs/pygtk/class-gdkpixbuf.html#function-gdk--pixbuf-new-from-data.

Nice find -- this does the trick.  I was able to plug it into gdk
draw_image and draw_mathtext fairly painlessly.  I've now removed all
the gtk compile time dependencies in the attached patch against svn
HEAD.  Because this is a major change, I'm going to hold off
committing it to give you all a change to review and test, and I'll
test some more on a different platform when I get home.  But on
solaris python2.4, I have animations with blitting in gtkagg, images
and mathtext in GTK/GDK, so this is looking pretty good so far (all of
this was segfaulting before)

Because build_gtk and build_gtkagg are no longer config options, there
is a small change in the logic in how the default backend gets set.
Now gtkagg will be set as the default backend if check_for_gtk returns
True.  We may want to change this, since tkagg is a little friendlier
across shells.

JDH

Attachment: diff.out
Description: Binary data

------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Matplotlib-devel mailing list
Matplotlib-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-devel

Reply via email to