* src/edit_person.glade: Set meaningful id for the Notes tab label.

* src/EditPerson.py (__init__): Find notes_label from XML, call
chane_notes() if note is not empty; (change_notes): Add function.


svn: r2321
This commit is contained in:
Alex Roitman 2003-11-09 23:14:18 +00:00
parent ab6f7ac74f
commit 192a74d07c
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-11-09 Alex Roitman <shura@alex.neuro.umn.edu>
* src/edit_person.glade: Set meaningful id for the Notes tab label.
* src/EditPerson.py (__init__): Find notes_label from XML, call
chane_notes() if note is not empty; (change_notes): Add function.
2003-11-06 Alex Roitman <shura@alex.neuro.umn.edu>
* src/gramps_main.py (back_pressed, fwd_pressed): Pass event to the
build_menu functions; (build_backhistmenu, build_fwdhistmenu): Use

View File

@ -118,6 +118,7 @@ class EditPerson:
self.addr_edit_btn = self.top.get_widget('addr_edit_btn')
self.notes_field = self.get_widget("personNotes")
self.notes_label = self.get_widget("notes_label")
self.event_name_field = self.get_widget("eventName")
self.event_place_field = self.get_widget("eventPlace")
self.event_cause_field = self.get_widget("eventCause")
@ -263,6 +264,8 @@ class EditPerson:
# set notes data
self.notes_buffer = self.notes_field.get_buffer()
self.notes_buffer.set_text(person.getNote())
if person.getNote():
self.change_notes()
self.event_list.drag_dest_set(gtk.DEST_DEFAULT_ALL,pycode_tgts,ACTION_COPY)
self.event_list.drag_source_set(BUTTON1_MASK, pycode_tgts, ACTION_COPY)
@ -1582,6 +1585,10 @@ class EditPerson:
self.ntype_field.entry.set_text(_(self.pname.getType()))
self.title.set_text(self.pname.getTitle())
def change_notes(self):
self.notes_label.set_text("<b><big><u>%s</u></big></b>" % _("Notes"))
self.notes_label.set_use_markup(1)
#-------------------------------------------------------------------------
#
# birth_dates_in_order

View File

@ -3453,7 +3453,7 @@
</child>
<child>
<widget class="GtkLabel" id="label37">
<widget class="GtkLabel" id="notes_label">
<property name="visible">True</property>
<property name="label" translatable="yes">&lt;b&gt;Notes&lt;/b&gt;</property>
<property name="use_underline">False</property>