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:
parent
b4c035fbc1
commit
76be2957b4
@ -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>
|
2006-08-02 Alex Roitman <shura@gramps-project.org>
|
||||||
* configure.in: Disable scrollkeeper update in the packager mode.
|
* configure.in: Disable scrollkeeper update in the packager mode.
|
||||||
|
|
||||||
|
@ -106,7 +106,7 @@ class BackRefList(EmbeddedList):
|
|||||||
def find_node(self):
|
def find_node(self):
|
||||||
(model, node) = self.selection.get_selected()
|
(model, node) = self.selection.get_selected()
|
||||||
try:
|
try:
|
||||||
return (model.get_value(node, 0), model.get_value(node, 3))
|
return (model.get_value(node, 4), model.get_value(node, 3))
|
||||||
except:
|
except:
|
||||||
return (None, None)
|
return (None, None)
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ import Utils
|
|||||||
class BackRefModel(gtk.ListStore):
|
class BackRefModel(gtk.ListStore):
|
||||||
|
|
||||||
def __init__(self, sref_list, db):
|
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.db = db
|
||||||
self.sref_list = sref_list
|
self.sref_list = sref_list
|
||||||
self.idle = 0
|
self.idle = 0
|
||||||
@ -94,6 +94,8 @@ class BackRefModel(gtk.ListStore):
|
|||||||
|
|
||||||
# dtype is the class name, i.e. is English
|
# dtype is the class name, i.e. is English
|
||||||
# We need to use localized string in the model.
|
# 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 True
|
||||||
yield False
|
yield False
|
||||||
|
Loading…
Reference in New Issue
Block a user