From fc1999086a4a9b7004db448df305ef567e3e11e0 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 --- src/GrampsCfg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/GrampsCfg.py b/src/GrampsCfg.py index 552c81aed..60356fdda 100644 --- a/src/GrampsCfg.py +++ b/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