Add config option to use Toolbar Text

This commit is contained in:
prculley 2018-07-09 11:03:02 -05:00 committed by Nick Hall
parent 824bf7e40f
commit 97b15322d4
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -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()