Added on_delete_event signal handler to surpress RuntimeWarning: missing handler

svn: r13983
This commit is contained in:
Doug Blank 2010-01-07 14:10:26 +00:00
parent 83d7448c1a
commit 3664fbb913
13 changed files with 13 additions and 1 deletions

View File

@ -180,6 +180,7 @@ class ChangeNames(Tool.BatchTool, ManagedWindow.ManagedWindow):
"destroy_passed_object" : self.close, "destroy_passed_object" : self.close,
"on_ok_clicked" : self.on_ok_clicked, "on_ok_clicked" : self.on_ok_clicked,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
"on_delete_event" : self.close,
}) })
self.list = self.top.get_object("list") self.list = self.top.get_object("list")

View File

@ -93,6 +93,7 @@ class ChangeTypes(Tool.BatchTool, ManagedWindow.ManagedWindow):
self.glade.connect_signals({ self.glade.connect_signals({
"on_close_clicked" : self.close, "on_close_clicked" : self.close,
"on_apply_clicked" : self.on_apply_clicked, "on_apply_clicked" : self.on_apply_clicked,
"on_delete_event" : self.close,
}) })
self.show() self.show()

View File

@ -72,6 +72,7 @@ class DesBrowse(Tool.ActivePersonTool, ManagedWindow.ManagedWindow):
self.glade.connect_signals({ self.glade.connect_signals({
"destroy_passed_object" : self.close, "destroy_passed_object" : self.close,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
"on_delete_event" : self.close,
}) })
window = self.glade.toplevel window = self.glade.toplevel

View File

@ -129,6 +129,7 @@ class EventComparison(Tool.Tool,ManagedWindow.ManagedWindow):
"on_filters_delete_event": self.close, "on_filters_delete_event": self.close,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
"destroy_passed_object" : self.close "destroy_passed_object" : self.close
"on_delete_event" : self.close,
}) })
window = self.filterDialog.toplevel window = self.filterDialog.toplevel

View File

@ -516,6 +516,7 @@ class ExtractCity(Tool.BatchTool, ManagedWindow.ManagedWindow):
"destroy_passed_object" : self.close, "destroy_passed_object" : self.close,
"on_ok_clicked" : self.on_ok_clicked, "on_ok_clicked" : self.on_ok_clicked,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
"on_delete_event" : self.close,
}) })
self.list = self.top.get_object("list") self.list = self.top.get_object("list")

View File

@ -130,6 +130,7 @@ class Merge(Tool.Tool,ManagedWindow.ManagedWindow):
"destroy_passed_object" : self.close, "destroy_passed_object" : self.close,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
"on_delete_merge_event" : self.close, "on_delete_merge_event" : self.close,
"on_delete_event" : self.close,
}) })
self.show() self.show()

View File

@ -99,7 +99,7 @@ class Leak(Tool.Tool,ManagedWindow.ManagedWindow):
self.glade.connect_signals({ self.glade.connect_signals({
"on_apply_clicked" : self.apply_clicked, "on_apply_clicked" : self.apply_clicked,
"on_close_clicked" : self.close, "on_close_clicked" : self.close,
"on_delete_event": self.close, "on_delete_event" : self.close,
}) })
self.display() self.display()
self.show() self.show()

View File

@ -81,6 +81,7 @@ class NotRelated(Tool.ActivePersonTool, ManagedWindow.ManagedWindow) :
topDialog.connect_signals({ topDialog.connect_signals({
"destroy_passed_object" : self.close, "destroy_passed_object" : self.close,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
"on_delete_event" : self.close,
}) })
window = topDialog.toplevel window = topDialog.toplevel

View File

@ -109,6 +109,7 @@ class OwnerEditor(Tool.Tool, ManagedWindow.ManagedWindow):
"on_help_button_clicked": self.on_help_button_clicked, "on_help_button_clicked": self.on_help_button_clicked,
"on_eventbox_button_press_event": self.on_button_press_event, "on_eventbox_button_press_event": self.on_button_press_event,
"on_menu_activate": self.on_menu_activate, "on_menu_activate": self.on_menu_activate,
"on_delete_event" : self.close,
}) })
# fetch the popup menu # fetch the popup menu

View File

@ -203,6 +203,7 @@ class PatchNames(Tool.BatchTool, ManagedWindow.ManagedWindow):
"destroy_passed_object" : self.close, "destroy_passed_object" : self.close,
"on_ok_clicked" : self.on_ok_clicked, "on_ok_clicked" : self.on_ok_clicked,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
"on_delete_event" : self.close,
}) })
self.list = self.top.get_object("list") self.list = self.top.get_object("list")

View File

@ -204,6 +204,7 @@ class RemoveUnused(Tool.Tool, ManagedWindow.ManagedWindow, UpdateCallback):
"destroy_passed_object" : self.close, "destroy_passed_object" : self.close,
"on_remove_button_clicked": self.do_remove, "on_remove_button_clicked": self.do_remove,
"on_find_button_clicked" : self.find, "on_find_button_clicked" : self.find,
"on_delete_event" : self.close,
}) })
self.dc_label = self.top.get_object('dc_label') self.dc_label = self.top.get_object('dc_label')

View File

@ -62,6 +62,7 @@ class SoundGen(Tool.Tool, ManagedWindow.ManagedWindow):
self.glade.connect_signals({ self.glade.connect_signals({
"destroy_passed_object" : self.close, "destroy_passed_object" : self.close,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
"on_delete_event" : self.close,
}) })
window = self.glade.toplevel window = self.glade.toplevel

View File

@ -255,6 +255,7 @@ class Verify(Tool.Tool, ManagedWindow, UpdateCallback):
"destroy_passed_object" : self.close, "destroy_passed_object" : self.close,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
"on_verify_ok_clicked" : self.on_apply_clicked "on_verify_ok_clicked" : self.on_apply_clicked
"on_delete_event" : self.close,
}) })
window = self.top.toplevel window = self.top.toplevel