From 97b15322d43c40fc3e3adbf392f0ca493e038fb0 Mon Sep 17 00:00:00 2001 From: prculley Date: Mon, 9 Jul 2018 11:03:02 -0500 Subject: [PATCH] Add config option to use Toolbar Text --- gramps/gen/config.py | 1 + gramps/gui/uimanager.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/gramps/gen/config.py b/gramps/gen/config.py index 89ebc1993..d735d9927 100644 --- a/gramps/gen/config.py +++ b/gramps/gen/config.py @@ -217,6 +217,7 @@ register('interface.sidebar-text', True) register('interface.size-checked', False) register('interface.statusbar', 1) register('interface.toolbar-on', True) +register('interface.toolbar-text', False) register('interface.view', True) register('interface.surname-box-height', 150) register('interface.treemodel-cache-size', 1000) diff --git a/gramps/gui/uimanager.py b/gramps/gui/uimanager.py index c272bccc6..ecf9d6f59 100644 --- a/gramps/gui/uimanager.py +++ b/gramps/gui/uimanager.py @@ -24,6 +24,7 @@ A replacement UIManager and ActionGroup. import copy import sys +from ..gen.config import config import logging import xml.etree.ElementTree as ET @@ -232,6 +233,8 @@ class UIManager(): tb_show = toolbar.get_visible() toolbar_parent.remove(toolbar) toolbar = self.builder.get_object("ToolBar") # new toolbar + if config.get('interface.toolbar-text'): + toolbar.set_style(Gtk.ToolbarStyle.BOTH) toolbar_parent.pack_start(toolbar, False, True, 0) if tb_show: toolbar.show_all()