* 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 272d58b5d2
commit 165b6919d2

View File

@ -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)