Update
svn: r6267
This commit is contained in:
parent
ad13eaa168
commit
a031cd0806
@ -1,7 +1,7 @@
|
||||
#
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2005 Donald N. Allingham
|
||||
# Copyright (C) 2000-2006 Donald N. Allingham
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
@ -21,8 +21,8 @@
|
||||
# $Id: _EditAttribute.py 6248 2006-03-31 23:46:34Z dallingham $
|
||||
|
||||
"""
|
||||
The EditAttribute module provides the AttributeEditor class. This provides a
|
||||
mechanism for the user to edit attribute information.
|
||||
The EditLdsOrd module provides the EditLdsOrd class. This provides a
|
||||
mechanism for the user to edit personal LDS information.
|
||||
"""
|
||||
|
||||
__author__ = "Donald N. Allingham"
|
||||
@ -78,9 +78,6 @@ class EditLdsOrd(EditSecondary):
|
||||
"""
|
||||
EditSecondary.__init__(self, state, uistate, track, attrib, callback)
|
||||
|
||||
def attribute_list(self):
|
||||
return Utils.personal_attributes
|
||||
|
||||
def _local_init(self):
|
||||
self.top = gtk.glade.XML(const.gladeFile, "lds_person_edit","gramps")
|
||||
self.define_top_level(self.top.get_widget("lds_person_edit"),
|
||||
@ -122,7 +119,7 @@ class EditLdsOrd(EditSecondary):
|
||||
for val in lds.temple_codes.keys():
|
||||
temple_list.append((lds.temple_codes[val],val))
|
||||
|
||||
self.type_menu = MonitoredStrMenu(
|
||||
self.temple_menu = MonitoredStrMenu(
|
||||
self.top.get_widget('temple'),
|
||||
self.obj.set_temple,
|
||||
self.obj.get_temple,
|
||||
@ -156,4 +153,3 @@ class EditLdsOrd(EditSecondary):
|
||||
if self.callback:
|
||||
self.callback(self.obj)
|
||||
self.close_window(obj)
|
||||
|
||||
|
@ -350,10 +350,6 @@ class MonitoredMenu:
|
||||
self.get_val = get_val
|
||||
|
||||
self.obj = obj
|
||||
cell = gtk.CellRendererText()
|
||||
self.obj.pack_start(cell, True)
|
||||
self.obj.add_attribute(cell, 'text', 0)
|
||||
|
||||
self.model = gtk.ListStore(str,int)
|
||||
for t,v in mapping:
|
||||
self.model.append(row=[t,v])
|
||||
@ -366,9 +362,6 @@ class MonitoredMenu:
|
||||
self.obj.set_active(value)
|
||||
|
||||
def on_change(self, obj):
|
||||
print obj
|
||||
print obj.get_active_iter()
|
||||
print self.model.get_value(obj.get_active_iter(),1)
|
||||
self.set_val(self.model.get_value(obj.get_active_iter(),1))
|
||||
|
||||
class MonitoredStrMenu:
|
||||
@ -379,10 +372,6 @@ class MonitoredStrMenu:
|
||||
|
||||
self.obj = obj
|
||||
self.model = gtk.ListStore(str)
|
||||
|
||||
cell = gtk.CellRendererText()
|
||||
self.obj.pack_start(cell, True)
|
||||
self.obj.add_attribute(cell, 'text', 0)
|
||||
|
||||
if len(mapping) > 20:
|
||||
self.obj.set_wrap_width(3)
|
||||
|
@ -15625,6 +15625,8 @@ You should select parents before adding any new information. If you select paren
|
||||
<child>
|
||||
<widget class="GtkComboBox" id="type">
|
||||
<property name="visible">True</property>
|
||||
<property name="items" translatable="yes">
|
||||
</property>
|
||||
<property name="add_tearoffs">False</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
</widget>
|
||||
@ -15641,6 +15643,8 @@ You should select parents before adding any new information. If you select paren
|
||||
<child>
|
||||
<widget class="GtkComboBox" id="temple">
|
||||
<property name="visible">True</property>
|
||||
<property name="items" translatable="yes">
|
||||
</property>
|
||||
<property name="add_tearoffs">False</property>
|
||||
<property name="focus_on_click">True</property>
|
||||
</widget>
|
||||
|
Loading…
Reference in New Issue
Block a user