Revision: 6809
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6809&view=rev
Author: efiring
Date: 2009-01-19 18:06:15 +0000 (Mon, 19 Jan 2009)
Log Message:
-----------
Don't try to delete nonexistent toolbar in backend_gtk
Modified Paths:
--------------
branches/v0_98_5_maint/CHANGELOG
branches/v0_98_5_maint/lib/matplotlib/backends/backend_gtk.py
Modified: branches/v0_98_5_maint/CHANGELOG
===================================================================
--- branches/v0_98_5_maint/CHANGELOG 2009-01-19 16:04:37 UTC (rev 6808)
+++ branches/v0_98_5_maint/CHANGELOG 2009-01-19 18:06:15 UTC (rev 6809)
@@ -1,4 +1,4 @@
-
+2009-01-19 Fix bug in backend_gtk: don't delete nonexistent toolbar. - EF
2009-01-16 Fix bug in is_string_like so it doesn't raise an
unnecessary exception. - EF
Modified: branches/v0_98_5_maint/lib/matplotlib/backends/backend_gtk.py
===================================================================
--- branches/v0_98_5_maint/lib/matplotlib/backends/backend_gtk.py
2009-01-19 16:04:37 UTC (rev 6808)
+++ branches/v0_98_5_maint/lib/matplotlib/backends/backend_gtk.py
2009-01-19 18:06:15 UTC (rev 6809)
@@ -484,7 +484,8 @@
self.vbox.destroy()
self.window.destroy()
self.canvas.destroy()
- self.toolbar.destroy()
+ if self.toolbar:
+ self.toolbar.destroy()
self.__dict__.clear()
if Gcf.get_num_fig_managers()==0 and \
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:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins