* 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:
parent
4c42ecc199
commit
dbbbab3bea
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user