* src/EditPerson.py: move strip_id from Utils
* src/GrampsCfg.py: use ComboBox for toolbar selection * src/Sources.py: switch to ComboBoxes from OptionMenus * src/Utils.py: removed unused functions * src/gramps.glade: switch to ComboBoxes svn: r3856
This commit is contained in:
28
src/Utils.py
28
src/Utils.py
@ -161,22 +161,6 @@ def get_detail_text(obj,priv=1):
|
||||
details = "%s, %s" % (details,_("Private"))
|
||||
return details
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def build_confidence_menu(menu):
|
||||
myMenu = gtk.Menu()
|
||||
index = 0
|
||||
for name in const.confidence:
|
||||
item = gtk.MenuItem(name)
|
||||
item.set_data("a",index)
|
||||
item.show()
|
||||
myMenu.append(item)
|
||||
index = index + 1
|
||||
menu.set_menu(myMenu)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
@ -239,18 +223,6 @@ def view_photo(photo):
|
||||
if os.fork() == 0:
|
||||
os.execvp(args[0],args)
|
||||
|
||||
#-------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
#
|
||||
#-------------------------------------------------------------------------
|
||||
def strip_id(text):
|
||||
index = text.rfind('[')
|
||||
if (index > 0):
|
||||
text = text[:index]
|
||||
text = text.rstrip()
|
||||
return text
|
||||
|
||||
def nautilus_icon(icon,mime_type):
|
||||
import GrampsGconfKeys
|
||||
|
||||
|
Reference in New Issue
Block a user