This commit is contained in:
Yann Leboulanger 2007-01-14 21:45:43 +00:00
parent b21e2882c8
commit 8301700501

View file

@ -288,11 +288,11 @@ class MessageWindow:
ctrl_page = self.notebook.page_num(ctrl.widget) ctrl_page = self.notebook.page_num(ctrl.widget)
self.notebook.set_current_page(ctrl_page) self.notebook.set_current_page(ctrl_page)
def remove_tab(self, ctrl, mothod, reason = None, force = False): def remove_tab(self, ctrl, method, reason = None, force = False):
'''reason is only for gc (offline status message) '''reason is only for gc (offline status message)
if force is True, do not ask any confirmation''' if force is True, do not ask any confirmation'''
# Shutdown the MessageControl # Shutdown the MessageControl
if not force and not ctrl.allow_shutdown(mothod): if not force and not ctrl.allow_shutdown(method):
return return
if reason is not None: # We are leaving gc with a status message if reason is not None: # We are leaving gc with a status message
ctrl.shutdown(reason) ctrl.shutdown(reason)