* src/plugins/Checkpoint.py: Fix wm.

svn: r6460
This commit is contained in:
Alex Roitman 2006-04-27 02:04:05 +00:00
parent f8f0ac3e30
commit 86ec5e51b8
2 changed files with 6 additions and 11 deletions

View File

@ -1,4 +1,5 @@
2006-04-26 Alex Roitman <shura@gramps-project.org>
* src/plugins/Checkpoint.py: Fix wm.
* src/plugins/ReorderIds.py: Adapt to new API; rebuild for Events
and Repositories.
* src/GrampsLogger/_ErrorReportAssistant.py

View File

@ -149,14 +149,11 @@ class Checkpoint(Tool.Tool, ManagedWindow.ManagedWindow):
self.rcs_rb.connect('toggled',self.rcs_toggled)
self.title = _("Checkpoint Data")
self.window = self.glade.get_widget('top')
Utils.set_titles(self.window,
self.glade.get_widget('title'),
self.title)
window = self.glade.get_widget('top')
self.set_window(window,self.glade.get_widget('title'),self.title)
self.glade.signal_autoconnect({
"on_close_clicked" : self.close,
"on_delete_event" : self.on_delete_event,
"on_arch_clicked" : self.on_archive_clicked,
"on_ret_clicked" : self.on_retrieve_clicked,
"on_help_clicked" : self.on_help_clicked,
@ -164,6 +161,9 @@ class Checkpoint(Tool.Tool, ManagedWindow.ManagedWindow):
self.show()
def build_menu_names(self,obj):
return (_("Checkpoint tool"),None)
def rcs_toggled(self,obj):
self.cust_arch_cb.set_sensitive(not obj.get_active())
self.cust_ret_cb.set_sensitive(not obj.get_active())
@ -172,12 +172,6 @@ class Checkpoint(Tool.Tool, ManagedWindow.ManagedWindow):
"""Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help('index')
def on_delete_event(self,obj,b):
self.remove_itself_from_menu()
def close(self,obj):
self.window.destroy()
def on_archive_clicked(self,obj):
self.options.handler.options_dict['cacmd'] = unicode(
self.cust_arch_cb.get_text())