Added on_delete_event signal handler to surpress RuntimeWarning: missing handler
svn: r13983
This commit is contained in:
parent
83d7448c1a
commit
3664fbb913
@ -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")
|
||||||
|
@ -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()
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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")
|
||||||
|
@ -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()
|
||||||
|
@ -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()
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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")
|
||||||
|
@ -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')
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user