This commit is contained in:
Yann Leboulanger 2007-01-14 21:45:43 +00:00
parent b21e2882c8
commit 8301700501
1 changed files with 2 additions and 2 deletions

View File

@ -288,11 +288,11 @@ class MessageWindow:
ctrl_page = self.notebook.page_num(ctrl.widget)
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)
if force is True, do not ask any confirmation'''
# Shutdown the MessageControl
if not force and not ctrl.allow_shutdown(mothod):
if not force and not ctrl.allow_shutdown(method):
return
if reason is not None: # We are leaving gc with a status message
ctrl.shutdown(reason)