Index: lib/matplotlib/backends/backend_gtk.py
===================================================================
--- lib/matplotlib/backends/backend_gtk.py      (revision 7257)
+++ lib/matplotlib/backends/backend_gtk.py      (working copy)
@@ -1148,7 +1148,7 @@
  # versions of pygtk, so we have to use a PNG file instead.
  try:

-    if gtk.pygtk_version < (2, 8, 0):
+    if gtk.pygtk_version < (2, 8, 0) or sys.platform == 'win32':
          icon_filename = 'matplotlib.png'
      else:
          icon_filename = 'matplotlib.svg'


--Christoph


On 07/11/2009 06:39, John Hunter wrote:
> On Mon, Jul 6, 2009 at 9:35 PM, Christoph Gohlke<cgoh...@uci.edu>  wrote:
>> Hi Steve,
>>
>> matplotlib-0.98.5.3.win32-py2.6.exe was compiled without support for GTK.
>>
>> If you don't mind trying, I have a build of the matplotlib trunk
>> available on my homepage that has GTK support enabled:
>>
>> http://www.lfd.uci.edu/~gohlke/#pythonlibs
>>
>> It should work with the PyGTK 2.12 Windows binaries from
>> http://www.pygtk.org/downloads.html.
>>
>> SVG support seems broken: the window.set_icon_from_file() function in
>> backend_gtk.py will raise an exception, not recognizing SVG files. The
>> PNG icon works.
>>
>
> Christoph: could you look into a patch that uses png for the icon for 
> win32/gtk?
>
> Thanks,
> JDH
>
>

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to