Skip to content

Commit 31d9a19

Browse files
committed
Merged revisions 8568 via svnmerge from
https://matplotlib.svn.sf.net/svnroot/matplotlib/branches/v1_0_maint ........ r8568 | mdboom | 2010-07-23 09:17:15 -0400 (Fri, 23 Jul 2010) | 2 lines Prevent traceback when window icon can not be loaded in Gtk backend. ........ svn path=/trunk/matplotlib/; revision=8569
1 parent 02f5442 commit 31d9a19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backends/backend_gtk.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def fn_name(): return sys._getframe(1).f_code.co_name
3333

3434
from matplotlib import lines
3535
from matplotlib import cbook
36+
from matplotlib import verbose
3637

3738
backend_version = "%d.%d.%d" % gtk.pygtk_version
3839

@@ -1224,7 +1225,6 @@ def on_dialog_lineprops_cancelbutton_clicked(self, button):
12241225
window_icon = None
12251226
verbose.report('Could not load matplotlib icon: %s' % sys.exc_info()[1])
12261227

1227-
12281228
def error_msg_gtk(msg, parent=None):
12291229
if parent is not None: # find the toplevel gtk.Window
12301230
parent = parent.get_toplevel()

0 commit comments

Comments
 (0)