* 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:
Don Allingham
2005-01-02 05:16:25 +00:00
parent 12be7e620a
commit 63b3c2e687
6 changed files with 91 additions and 259 deletions

View File

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