From dbbbab3beabb7356064f6e1f3c8f1bdba75d9f54 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 10 Dec 2003 15:30:55 +0000 Subject: [PATCH] * 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 --- gramps2/src/GrampsCfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gramps2/src/GrampsCfg.py b/gramps2/src/GrampsCfg.py index 552c81aed..60356fdda 100644 --- a/gramps2/src/GrampsCfg.py +++ b/gramps2/src/GrampsCfg.py @@ -248,8 +248,9 @@ def loadConfig(call): id_edit = get_bool("/apps/gramps/id-edit") index_visible = get_bool("/apps/gramps/index-visible") 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)) + save_toolbar = get_int("/apps/gramps/toolbar",5) if save_toolbar == 5: toolbar = gnome_toolbar