* src/GrampsCfg.py: Make sure to return "BOTH" if the gnome

toolbar gconf entry is not set. Appears that this can happen
on systems that don't have gnome fully installed.


svn: r2497
This commit is contained in:
Don Allingham 2003-12-10 15:30:55 +00:00
parent 6561e87845
commit fc1999086a

View File

@ -248,8 +248,9 @@ def loadConfig(call):
id_edit = get_bool("/apps/gramps/id-edit") id_edit = get_bool("/apps/gramps/id-edit")
index_visible = get_bool("/apps/gramps/index-visible") index_visible = get_bool("/apps/gramps/index-visible")
status_bar = get_int("/apps/gramps/statusbar") status_bar = get_int("/apps/gramps/statusbar")
gnome_toolbar_str = get_string("/desktop/gnome/interface/toolbar_style") gnome_toolbar_str = get_string("/desktop/gnome/interface/toolbar_style","BOTH")
gnome_toolbar = eval("gtk.TOOLBAR_%s" % string.upper(gnome_toolbar_str)) gnome_toolbar = eval("gtk.TOOLBAR_%s" % string.upper(gnome_toolbar_str))
save_toolbar = get_int("/apps/gramps/toolbar",5) save_toolbar = get_int("/apps/gramps/toolbar",5)
if save_toolbar == 5: if save_toolbar == 5:
toolbar = gnome_toolbar toolbar = gnome_toolbar