* src/plugins/Checkpoint.py: Replace combos with text entries.

* src/plugins/checkpoint.glade: Replace combos with text entries.


svn: r5455
This commit is contained in:
Alex Roitman 2005-11-30 00:04:47 +00:00
parent cb2e27a673
commit 36807fe825
3 changed files with 26 additions and 20 deletions

View File

@ -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 <don@gramps-project.org>
* src/GrampsBSDDB.py: change rebuilding of secondary indices

View File

@ -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())

View File

@ -387,28 +387,44 @@
</child>
<child>
<widget class="GtkComboBoxEntry" id="cust_arch">
<widget class="GtkEntry" id="cust_arch">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
<property name="visibility">True</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">3</property>
<property name="bottom_attach">4</property>
<property name="y_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
<child>
<widget class="GtkComboBoxEntry" id="cust_ret">
<widget class="GtkEntry" id="cust_ret">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="editable">True</property>
<property name="visibility">True</property>
<property name="max_length">0</property>
<property name="text" translatable="yes"></property>
<property name="has_frame">True</property>
<property name="invisible_char" translatable="yes">*</property>
<property name="activates_default">False</property>
</widget>
<packing>
<property name="left_attach">3</property>
<property name="right_attach">4</property>
<property name="top_attach">4</property>
<property name="bottom_attach">5</property>
<property name="y_options">fill</property>
<property name="y_options"></property>
</packing>
</child>
</widget>