summaryrefslogtreecommitdiff
path: root/src/config/ConfigurationInterfaces.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-08-20 15:09:31 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-08-20 15:09:31 +0200
commit143bfc9f801c84428074312d661f8e08803df83b (patch)
tree59a8a447529bd9ce3807aa8bacef861dc5aafd70 /src/config/ConfigurationInterfaces.vala
parent29a7aef998e975b42401cfa96d1b750d91eadf06 (diff)
Imported Upstream version 0.23.5upstream/0.23.5
Diffstat (limited to 'src/config/ConfigurationInterfaces.vala')
-rw-r--r--src/config/ConfigurationInterfaces.vala26
1 files changed, 26 insertions, 0 deletions
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
//