From 36807fe825bbdfb6bd6ca32b6af9f0389881baa0 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Wed, 30 Nov 2005 00:04:47 +0000 Subject: [PATCH] * src/plugins/Checkpoint.py: Replace combos with text entries. * src/plugins/checkpoint.glade: Replace combos with text entries. svn: r5455 --- gramps2/ChangeLog | 2 ++ gramps2/src/plugins/Checkpoint.py | 20 ++++---------------- gramps2/src/plugins/checkpoint.glade | 24 ++++++++++++++++++++---- 3 files changed, 26 insertions(+), 20 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index c2343d624..0becae856 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -3,6 +3,8 @@ * doc/gramps-manual/Makefile.am: Add symlink to keep all gnome versions happy with the help path. * src/po/de.po: Typos: missing "\n". + * src/plugins/Checkpoint.py: Replace combos with text entries. + * src/plugins/checkpoint.glade: Replace combos with text entries. 2005-11-29 Don Allingham * src/GrampsBSDDB.py: change rebuilding of secondary indices diff --git a/gramps2/src/plugins/Checkpoint.py b/gramps2/src/plugins/Checkpoint.py index a4e36bfe3..362a2e0bf 100644 --- a/gramps2/src/plugins/Checkpoint.py +++ b/gramps2/src/plugins/Checkpoint.py @@ -50,7 +50,6 @@ from gnome import help_display from QuestionDialog import OkDialog, ErrorDialog import WriteXML import Tool -import AutoComp import Utils #------------------------------------------------------------------------- @@ -59,15 +58,6 @@ import Utils # #------------------------------------------------------------------------- -# Some strings that we offer as custom commands -cust_arch_list = [ - 'cvs ci -m "$(date)"', - ] - -cust_ret_list = [ - 'cvs up', - ] - # Some message strings rcs_setup_failure_msg = [ _("Checkpoint Archive Creation Failed"), @@ -143,11 +133,9 @@ class Checkpoint(Tool.Tool): self.cust_rb = self.glade.get_widget("custom") # Fill in the stored values - AutoComp.fill_combo(self.cust_arch_cb,cust_arch_list) - AutoComp.fill_combo(self.cust_ret_cb,cust_ret_list) - self.cust_arch_cb.child.set_text( + self.cust_arch_cb.set_text( self.options.handler.options_dict['cacmd']) - self.cust_ret_cb.child.set_text( + self.cust_ret_cb.set_text( self.options.handler.options_dict['crcmd']) # Display controls according to the state @@ -209,7 +197,7 @@ class Checkpoint(Tool.Tool): def on_archive_clicked(self,obj): self.options.handler.options_dict['cacmd'] = unicode( - self.cust_arch_cb.child.get_text()) + self.cust_arch_cb.get_text()) self.options.handler.options_dict['rcs'] = int( self.rcs_rb.get_active()) @@ -219,7 +207,7 @@ class Checkpoint(Tool.Tool): def on_retrieve_clicked(self,obj): self.options.handler.options_dict['crcmd'] = unicode( - self.cust_ret_cb.child.get_text()) + self.cust_ret_cb.get_text()) self.options.handler.options_dict['rcs'] = int( self.rcs_rb.get_active()) diff --git a/gramps2/src/plugins/checkpoint.glade b/gramps2/src/plugins/checkpoint.glade index 9737a0e47..7fd061adb 100644 --- a/gramps2/src/plugins/checkpoint.glade +++ b/gramps2/src/plugins/checkpoint.glade @@ -387,28 +387,44 @@ - + True + True + True + True + 0 + + True + * + False 3 4 3 4 - fill + - + True + True + True + True + 0 + + True + * + False 3 4 4 5 - fill +