From 143bfc9f801c84428074312d661f8e08803df83b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 20 Aug 2016 15:09:31 +0200 Subject: Imported Upstream version 0.23.5 --- src/config/ConfigurationInterfaces.vala | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'src/config/ConfigurationInterfaces.vala') diff --git a/src/config/ConfigurationInterfaces.vala b/src/config/ConfigurationInterfaces.vala index 03e7f59..9414f49 100644 --- a/src/config/ConfigurationInterfaces.vala +++ b/src/config/ConfigurationInterfaces.vala @@ -36,6 +36,7 @@ public enum ConfigurableProperty { DISPLAY_EVENT_COMMENTS, DISPLAY_EXTENDED_PROPERTIES, DISPLAY_SIDEBAR, + DISPLAY_TOOLBAR, DISPLAY_SEARCH_BAR, DISPLAY_PHOTO_RATINGS, DISPLAY_PHOTO_TAGS, @@ -132,6 +133,9 @@ public enum ConfigurableProperty { case DISPLAY_SIDEBAR: return "DISPLAY_SIDEBAR"; + + case DISPLAY_TOOLBAR: + return "DISPLAY_TOOLBAR"; case DISPLAY_SEARCH_BAR: return "DISPLAY_SEARCH_BAR"; @@ -630,6 +634,28 @@ public abstract class ConfigurationFacade : Object { } } + + // + // display toolbar + // + public virtual bool get_display_toolbar() { + try { + return get_engine().get_bool_property(ConfigurableProperty.DISPLAY_TOOLBAR); + } catch (ConfigurationError err) { + on_configuration_error(err); + + return false; + } + } + + public virtual void set_display_toolbar(bool display) { + try { + get_engine().set_bool_property(ConfigurableProperty.DISPLAY_TOOLBAR, display); + } catch (ConfigurationError err) { + on_configuration_error(err); + } + } + // // display search & filter toolbar // -- cgit v1.2.3