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

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

View File

@ -1,4 +1,5 @@
2006-04-26 Alex Roitman <shura@gramps-project.org> 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 * src/plugins/ReorderIds.py: Adapt to new API; rebuild for Events
and Repositories. and Repositories.
* src/GrampsLogger/_ErrorReportAssistant.py * 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.rcs_rb.connect('toggled',self.rcs_toggled)
self.title = _("Checkpoint Data") self.title = _("Checkpoint Data")
self.window = self.glade.get_widget('top') window = self.glade.get_widget('top')
Utils.set_titles(self.window, self.set_window(window,self.glade.get_widget('title'),self.title)
self.glade.get_widget('title'),
self.title)
self.glade.signal_autoconnect({ self.glade.signal_autoconnect({
"on_close_clicked" : self.close, "on_close_clicked" : self.close,
"on_delete_event" : self.on_delete_event,
"on_arch_clicked" : self.on_archive_clicked, "on_arch_clicked" : self.on_archive_clicked,
"on_ret_clicked" : self.on_retrieve_clicked, "on_ret_clicked" : self.on_retrieve_clicked,
"on_help_clicked" : self.on_help_clicked, "on_help_clicked" : self.on_help_clicked,
@ -164,6 +161,9 @@ class Checkpoint(Tool.Tool, ManagedWindow.ManagedWindow):
self.show() self.show()
def build_menu_names(self,obj):
return (_("Checkpoint tool"),None)
def rcs_toggled(self,obj): def rcs_toggled(self,obj):
self.cust_arch_cb.set_sensitive(not obj.get_active()) self.cust_arch_cb.set_sensitive(not obj.get_active())
self.cust_ret_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""" """Display the relevant portion of GRAMPS manual"""
GrampsDisplay.help('index') 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): def on_archive_clicked(self,obj):
self.options.handler.options_dict['cacmd'] = unicode( self.options.handler.options_dict['cacmd'] = unicode(
self.cust_arch_cb.get_text()) self.cust_arch_cb.get_text())