* src/PedView.py (PedigreeView.find_children): used italics instead of
'*' to indicate children in popup menu svn: r2407
This commit is contained in:
parent
272d58b5d2
commit
165b6919d2
@ -312,9 +312,15 @@ class PedigreeView:
|
|||||||
myMenu = gtk.Menu()
|
myMenu = gtk.Menu()
|
||||||
for child in childlist:
|
for child in childlist:
|
||||||
cname = GrampsCfg.nameof(child)
|
cname = GrampsCfg.nameof(child)
|
||||||
if len(find_children(child)) > 0:
|
menuitem = gtk.MenuItem(None)
|
||||||
cname = cname + " *"
|
if find_children(child):
|
||||||
menuitem = gtk.MenuItem(cname)
|
label = gtk.Label('<i>%s</i>' % cname)
|
||||||
|
else:
|
||||||
|
label = gtk.Label(cname)
|
||||||
|
label.set_use_markup(gtk.TRUE)
|
||||||
|
label.show()
|
||||||
|
label.set_justify(gtk.JUSTIFY_LEFT)
|
||||||
|
menuitem.add(label)
|
||||||
myMenu.append(menuitem)
|
myMenu.append(menuitem)
|
||||||
menuitem.set_data(_PERSON,child)
|
menuitem.set_data(_PERSON,child)
|
||||||
menuitem.connect("activate",self.on_childmenu_changed)
|
menuitem.connect("activate",self.on_childmenu_changed)
|
||||||
|
Loading…
Reference in New Issue
Block a user