* 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:
parent
948c9ada08
commit
874bee1f7c
@ -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>
|
2003-11-06 Alex Roitman <shura@alex.neuro.umn.edu>
|
||||||
* src/gramps_main.py (back_pressed, fwd_pressed): Pass event to the
|
* src/gramps_main.py (back_pressed, fwd_pressed): Pass event to the
|
||||||
build_menu functions; (build_backhistmenu, build_fwdhistmenu): Use
|
build_menu functions; (build_backhistmenu, build_fwdhistmenu): Use
|
||||||
|
@ -118,6 +118,7 @@ class EditPerson:
|
|||||||
self.addr_edit_btn = self.top.get_widget('addr_edit_btn')
|
self.addr_edit_btn = self.top.get_widget('addr_edit_btn')
|
||||||
|
|
||||||
self.notes_field = self.get_widget("personNotes")
|
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_name_field = self.get_widget("eventName")
|
||||||
self.event_place_field = self.get_widget("eventPlace")
|
self.event_place_field = self.get_widget("eventPlace")
|
||||||
self.event_cause_field = self.get_widget("eventCause")
|
self.event_cause_field = self.get_widget("eventCause")
|
||||||
@ -263,6 +264,8 @@ class EditPerson:
|
|||||||
# set notes data
|
# set notes data
|
||||||
self.notes_buffer = self.notes_field.get_buffer()
|
self.notes_buffer = self.notes_field.get_buffer()
|
||||||
self.notes_buffer.set_text(person.getNote())
|
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_dest_set(gtk.DEST_DEFAULT_ALL,pycode_tgts,ACTION_COPY)
|
||||||
self.event_list.drag_source_set(BUTTON1_MASK, 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.ntype_field.entry.set_text(_(self.pname.getType()))
|
||||||
self.title.set_text(self.pname.getTitle())
|
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
|
# birth_dates_in_order
|
||||||
|
@ -3453,7 +3453,7 @@
|
|||||||
</child>
|
</child>
|
||||||
|
|
||||||
<child>
|
<child>
|
||||||
<widget class="GtkLabel" id="label37">
|
<widget class="GtkLabel" id="notes_label">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="label" translatable="yes"><b>Notes</b></property>
|
<property name="label" translatable="yes"><b>Notes</b></property>
|
||||||
<property name="use_underline">False</property>
|
<property name="use_underline">False</property>
|
||||||
|
Loading…
Reference in New Issue
Block a user