Skip to content

Commit

Permalink
'SC'
Browse files Browse the repository at this point in the history
svn path=/trunk/matplotlib/; revision=2094
  • Loading branch information
Steve Chaplin committed Feb 26, 2006
1 parent a02aa86 commit 48bd724
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2006-02-26 Update the previous gtk.main_quit() bug fix to use gtk.main_level()
- SC

2006-02-24 Implemented alpha support in contour and contourf - EF

2006-02-22 Fixed gtk main quit bug when quit was called before
Expand All @@ -15,7 +18,7 @@

2006-02-21 Fixed portrait/landscape orientation in postscript backend - DSD

2006-02-21 fix bug introduced in yesterday's bug fix - SC
2006-02-21 Fix bug introduced in yesterday's bug fix - SC

2006-02-20 backend_gtk.py FigureCanvasGTK.draw(): fix bug reported by
David Tremouilles - SC
Expand Down
8 changes: 4 additions & 4 deletions lib/matplotlib/backends/backend_gtk.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ def show(mainloop=True):

if mainloop and gtk.main_level() == 0:
gtk.main()
show._mainloop = True
show._mainloop = False

def new_figure_manager(num, *args, **kwargs):
"""
Expand Down Expand Up @@ -454,8 +452,10 @@ def destroy(self, *args):
if _debug: print 'FigureManagerGTK.%s' % fn_name()
self.window.destroy()

if Gcf.get_num_fig_managers()==0 and not matplotlib.is_interactive():
if show._mainloop: gtk.main_quit()
if Gcf.get_num_fig_managers()==0 and \
not matplotlib.is_interactive() and \
gtk.main_level() >= 1:
gtk.main_quit()


def full_screen_toggle (self):
Expand Down

0 comments on commit 48bd724

Please sign in to comment.