2006-08-03 Alex Roitman <shura@gramps-project.org>

* src/DisplayTabs/_BackRefList.py (find_node): Use class name.
	* src/DisplayTabs/_BackRefModel.py (__init__, load_model): Add new
	column to keep both class name and translation.



svn: r7113
This commit is contained in:
Alex Roitman 2006-08-03 13:28:40 +00:00
parent b4c035fbc1
commit 76be2957b4
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2006-08-03 Alex Roitman <shura@gramps-project.org>
* src/DisplayTabs/_BackRefList.py (find_node): Use class name.
* src/DisplayTabs/_BackRefModel.py (__init__, load_model): Add new
column to keep both class name and translation.
2006-08-02 Alex Roitman <shura@gramps-project.org>
* configure.in: Disable scrollkeeper update in the packager mode.

View File

@ -106,7 +106,7 @@ class BackRefList(EmbeddedList):
def find_node(self):
(model, node) = self.selection.get_selected()
try:
return (model.get_value(node, 0), model.get_value(node, 3))
return (model.get_value(node, 4), model.get_value(node, 3))
except:
return (None, None)

View File

@ -44,7 +44,7 @@ import Utils
class BackRefModel(gtk.ListStore):
def __init__(self, sref_list, db):
gtk.ListStore.__init__(self, str, str, str, str)
gtk.ListStore.__init__(self, str, str, str, str, str)
self.db = db
self.sref_list = sref_list
self.idle = 0
@ -94,6 +94,8 @@ class BackRefModel(gtk.ListStore):
# dtype is the class name, i.e. is English
# We need to use localized string in the model.
self.append(row=[_(dtype), gid, name, handle])
# we also need to keep class names to get the object type,
# but we don't need to show that in the view.
self.append(row=[_(dtype), gid, name, handle, dtype])
yield True
yield False