Auto complete surname in the 'Add Spouse' dialog.
svn: r525
This commit is contained in:
parent
d5a0b176b1
commit
e85afc2a0f
@ -71,8 +71,14 @@ class AddSpouse:
|
|||||||
self.top = self.glade.get_widget("spouseDialog")
|
self.top = self.glade.get_widget("spouseDialog")
|
||||||
self.given = self.glade.get_widget("given")
|
self.given = self.glade.get_widget("given")
|
||||||
self.surname = self.glade.get_widget("surname")
|
self.surname = self.glade.get_widget("surname")
|
||||||
|
self.surname_combo = self.glade.get_widget("surname_combo")
|
||||||
|
|
||||||
self.rel_combo.set_popdown_strings(const.familyRelations)
|
self.rel_combo.set_popdown_strings(const.familyRelations)
|
||||||
|
if len(const.surnames) > 0:
|
||||||
|
const.surnames.sort()
|
||||||
|
self.surname_combo.set_popdown_strings(const.surnames)
|
||||||
|
self.surname_combo.disable_activate()
|
||||||
|
self.surname.set_text("")
|
||||||
|
|
||||||
# Typing CR selects 'Add Existing' button
|
# Typing CR selects 'Add Existing' button
|
||||||
self.top.editable_enters(self.given)
|
self.top.editable_enters(self.given)
|
||||||
|
@ -3544,26 +3544,22 @@
|
|||||||
</widget>
|
</widget>
|
||||||
|
|
||||||
<widget>
|
<widget>
|
||||||
<class>GtkEntry</class>
|
<class>GtkCombo</class>
|
||||||
<name>surname</name>
|
<name>surname_combo</name>
|
||||||
<can_focus>True</can_focus>
|
<border_width>5</border_width>
|
||||||
<signal>
|
<value_in_list>False</value_in_list>
|
||||||
<name>activate</name>
|
<ok_if_empty>True</ok_if_empty>
|
||||||
<handler>on_surname_activate</handler>
|
<case_sensitive>False</case_sensitive>
|
||||||
<object>spouseDialog</object>
|
<use_arrows>True</use_arrows>
|
||||||
<last_modification_time>Sat, 22 Sep 2001 04:20:48 GMT</last_modification_time>
|
<use_arrows_always>False</use_arrows_always>
|
||||||
</signal>
|
<items></items>
|
||||||
<editable>True</editable>
|
|
||||||
<text_visible>True</text_visible>
|
|
||||||
<text_max_length>0</text_max_length>
|
|
||||||
<text></text>
|
|
||||||
<child>
|
<child>
|
||||||
<left_attach>1</left_attach>
|
<left_attach>1</left_attach>
|
||||||
<right_attach>2</right_attach>
|
<right_attach>2</right_attach>
|
||||||
<top_attach>1</top_attach>
|
<top_attach>1</top_attach>
|
||||||
<bottom_attach>2</bottom_attach>
|
<bottom_attach>2</bottom_attach>
|
||||||
<xpad>5</xpad>
|
<xpad>0</xpad>
|
||||||
<ypad>5</ypad>
|
<ypad>0</ypad>
|
||||||
<xexpand>True</xexpand>
|
<xexpand>True</xexpand>
|
||||||
<yexpand>False</yexpand>
|
<yexpand>False</yexpand>
|
||||||
<xshrink>False</xshrink>
|
<xshrink>False</xshrink>
|
||||||
@ -3571,6 +3567,23 @@
|
|||||||
<xfill>True</xfill>
|
<xfill>True</xfill>
|
||||||
<yfill>False</yfill>
|
<yfill>False</yfill>
|
||||||
</child>
|
</child>
|
||||||
|
|
||||||
|
<widget>
|
||||||
|
<class>GtkEntry</class>
|
||||||
|
<child_name>GtkCombo:entry</child_name>
|
||||||
|
<name>surname</name>
|
||||||
|
<can_focus>True</can_focus>
|
||||||
|
<signal>
|
||||||
|
<name>insert_text</name>
|
||||||
|
<handler>on_combo_insert_text</handler>
|
||||||
|
<object>surname_combo</object>
|
||||||
|
<last_modification_time>Tue, 30 Oct 2001 09:51:42 GMT</last_modification_time>
|
||||||
|
</signal>
|
||||||
|
<editable>True</editable>
|
||||||
|
<text_visible>True</text_visible>
|
||||||
|
<text_max_length>0</text_max_length>
|
||||||
|
<text></text>
|
||||||
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
</widget>
|
</widget>
|
||||||
|
Loading…
Reference in New Issue
Block a user