3093: Enable grouped displaytab in the editor: Name tab
svn: r12781
This commit is contained in:
@@ -288,7 +288,7 @@ class ChildEmbedList(EmbeddedList):
|
||||
pass
|
||||
break
|
||||
|
||||
def edit_child_button_clicked(self, obj):
|
||||
def edit_child_button_clicked(self):
|
||||
handle = self.get_selected()
|
||||
if handle:
|
||||
from Editors import EditPerson
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
# Gramps - a GTK+/GNOME based genealogy program
|
||||
#
|
||||
# Copyright (C) 2000-2007 Donald N. Allingham
|
||||
# 2008-2009 Benny Malengier
|
||||
# 2009 Gary Burton
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
|
||||
@@ -304,7 +304,7 @@ class EditPerson(EditPrimary):
|
||||
self.top.get_object("call"),
|
||||
self.top.get_object("prefixentry"),
|
||||
]:
|
||||
obj.connect('changed', self._changed_title)
|
||||
obj.connect('changed', self._changed_name)
|
||||
|
||||
def _create_tabbed_pages(self):
|
||||
"""
|
||||
@@ -399,18 +399,18 @@ class EditPerson(EditPrimary):
|
||||
self.top.get_object('vbox').pack_start(notebook, True)
|
||||
|
||||
|
||||
def _changed_title(self, obj):
|
||||
def _changed_name(self, obj):
|
||||
"""
|
||||
callback to changes typed by user to the person name.
|
||||
Update the window title
|
||||
Update the window title, and default name in name tab
|
||||
"""
|
||||
self.update_title(self.get_menu_title())
|
||||
self.name_list.update_defname()
|
||||
|
||||
def name_callback(self):
|
||||
"""
|
||||
Callback if changes happen in the name tab.
|
||||
The Preferred Name is _NOT_ part of the name tab, but name tab allows
|
||||
reorder and hence setting of new primary name.
|
||||
Callback if changes happen in the name tab that impact the preferred
|
||||
name.
|
||||
"""
|
||||
self.pname = self.obj.get_primary_name()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user