diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 1723811ec..6cd73f103 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,8 @@ +2003-11-09 Alex Roitman + * 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 * src/gramps_main.py (back_pressed, fwd_pressed): Pass event to the build_menu functions; (build_backhistmenu, build_fwdhistmenu): Use diff --git a/gramps2/src/EditPerson.py b/gramps2/src/EditPerson.py index 0bf8e29b9..3506da5de 100644 --- a/gramps2/src/EditPerson.py +++ b/gramps2/src/EditPerson.py @@ -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("%s" % _("Notes")) + self.notes_label.set_use_markup(1) + #------------------------------------------------------------------------- # # birth_dates_in_order diff --git a/gramps2/src/edit_person.glade b/gramps2/src/edit_person.glade index e7df9d719..b0f0bd65f 100644 --- a/gramps2/src/edit_person.glade +++ b/gramps2/src/edit_person.glade @@ -3453,7 +3453,7 @@ - + True <b>Notes</b> False