* src/ListModel.py: Check for the list to be long enough.

* src/gramps.glade: Replace ComboBox with ComboBoxEntry; remove
unneeded scrollwed window (caused warning).


svn: r4757
This commit is contained in:
Alex Roitman 2005-06-02 13:23:20 +00:00
parent 1946c31ba6
commit 0258aad197
3 changed files with 129 additions and 138 deletions

View File

@ -1,3 +1,8 @@
2005-06-02 Alex Roitman <shura@gramps-project.org>
* src/ListModel.py: Check for the list to be long enough.
* src/gramps.glade: Replace ComboBox with ComboBoxEntry; remove
unneeded scrollwed window (caused warning).
2005-06-01 Don Allingham <don@gramps-project.org> 2005-06-01 Don Allingham <don@gramps-project.org>
* src/EditPerson.py: Start event_ref integration * src/EditPerson.py: Start event_ref integration
* src/EventEdit.py: Start event_ref integration * src/EventEdit.py: Start event_ref integration

View File

@ -42,7 +42,7 @@ class ListModel:
self.mylist = [] self.mylist = []
self.data_index = 0 self.data_index = 0
for l in dlist: for l in dlist:
if l[3] == TOGGLE: if len(l)>3 and l[3] == TOGGLE:
self.mylist.append(TYPE_BOOLEAN) self.mylist.append(TYPE_BOOLEAN)
else: else:
self.mylist.append(TYPE_STRING) self.mylist.append(TYPE_STRING)

View File

@ -33441,6 +33441,7 @@ Family name Given name
<property name="active">False</property> <property name="active">False</property>
<property name="inconsistent">False</property> <property name="inconsistent">False</property>
<property name="draw_indicator">True</property> <property name="draw_indicator">True</property>
<property name="group">repository_flowed</property>
</widget> </widget>
<packing> <packing>
<property name="left_attach">2</property> <property name="left_attach">2</property>
@ -33484,15 +33485,6 @@ Family name Given name
</packing> </packing>
</child> </child>
<child>
<widget class="GtkScrolledWindow" id="scrolledwindow89">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="vscrollbar_policy">GTK_POLICY_AUTOMATIC</property>
<property name="shadow_type">GTK_SHADOW_NONE</property>
<property name="window_placement">GTK_CORNER_TOP_LEFT</property>
<child> <child>
<widget class="GtkHBox" id="hbox110"> <widget class="GtkHBox" id="hbox110">
<property name="border_width">6</property> <property name="border_width">6</property>
@ -33626,8 +33618,6 @@ Family name Given name
</packing> </packing>
</child> </child>
</widget> </widget>
</child>
</widget>
<packing> <packing>
<property name="tab_expand">False</property> <property name="tab_expand">False</property>
<property name="tab_fill">True</property> <property name="tab_fill">True</property>
@ -34507,24 +34497,6 @@ Family name Given name
</packing> </packing>
</child> </child>
<child>
<widget class="GtkComboBox" id="repos_ref_media_type">
<property name="visible">True</property>
<property name="items" translatable="yes">Very Low
Low
Normal
High
Very High</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">4</property>
<property name="top_attach">6</property>
<property name="bottom_attach">7</property>
<property name="y_options">fill</property>
</packing>
</child>
<child> <child>
<widget class="GtkEntry" id="repos_ref_callnumber"> <widget class="GtkEntry" id="repos_ref_callnumber">
<property name="visible">True</property> <property name="visible">True</property>
@ -34593,6 +34565,20 @@ Very High</property>
<property name="y_options"></property> <property name="y_options"></property>
</packing> </packing>
</child> </child>
<child>
<widget class="GtkComboBoxEntry" id="repos_ref_media_type">
<property name="visible">True</property>
</widget>
<packing>
<property name="left_attach">2</property>
<property name="right_attach">4</property>
<property name="top_attach">6</property>
<property name="bottom_attach">7</property>
<property name="x_options">fill</property>
<property name="y_options">fill</property>
</packing>
</child>
</widget> </widget>
<packing> <packing>
<property name="padding">0</property> <property name="padding">0</property>