* src/PedView.py (PedigreeView.find_children): used italics instead of

'*' to indicate children in popup menu


svn: r2407
This commit is contained in:
Don Allingham 2003-11-30 06:19:00 +00:00
parent 9730743ccb
commit b371dec8f6

View File

@ -312,9 +312,15 @@ class PedigreeView:
myMenu = gtk.Menu()
for child in childlist:
cname = GrampsCfg.nameof(child)
if len(find_children(child)) > 0:
cname = cname + " *"
menuitem = gtk.MenuItem(cname)
menuitem = gtk.MenuItem(None)
if find_children(child):
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)
menuitem.set_data(_PERSON,child)
menuitem.connect("activate",self.on_childmenu_changed)