summaryrefslogtreecommitdiff
path: root/src/config/ConfigurationInterfaces.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2018-10-01 07:17:16 +0200
committerJörg Frings-Fürst <debian@jff.email>2018-10-01 07:17:16 +0200
commit71137cc5832110d91599d68790402cf196762ed3 (patch)
treee7985bbfb6ca50ea738b38a9f852ee51431d48a7 /src/config/ConfigurationInterfaces.vala
parent8ae550d463720d5d1c0e253af29843ff15de1a54 (diff)
parent1e92964463e564bb3359a7110342182fcfdc67f2 (diff)
Merge branch 'release/debian/0.30.1-1'debian/0.30.1-1
Diffstat (limited to 'src/config/ConfigurationInterfaces.vala')
-rw-r--r--src/config/ConfigurationInterfaces.vala20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/config/ConfigurationInterfaces.vala b/src/config/ConfigurationInterfaces.vala
index c785144..8af5a73 100644
--- a/src/config/ConfigurationInterfaces.vala
+++ b/src/config/ConfigurationInterfaces.vala
@@ -21,7 +21,7 @@ public enum FuzzyPropertyState {
public enum ConfigurableProperty {
AUTO_IMPORT_FROM_LIBRARY = 0,
- BG_COLOR_NAME,
+ GTK_THEME_VARIANT,
TRANSPARENT_BACKGROUND_TYPE,
TRANSPARENT_BACKGROUND_COLOR,
COMMIT_METADATA_TO_MASTERS,
@@ -100,8 +100,8 @@ public enum ConfigurableProperty {
case AUTO_IMPORT_FROM_LIBRARY:
return "AUTO_IMPORT_FROM_LIBRARY";
- case BG_COLOR_NAME:
- return "BG_COLOR_NAME";
+ case GTK_THEME_VARIANT:
+ return "GTK_THEME_VARIANT";
case TRANSPARENT_BACKGROUND_TYPE:
return "TRANSPARENT_BACKGROUND_TYPE";
@@ -376,7 +376,7 @@ public abstract class ConfigurationFacade : Object {
auto_import_from_library_changed();
break;
- case ConfigurableProperty.BG_COLOR_NAME:
+ case ConfigurableProperty.GTK_THEME_VARIANT:
bg_color_name_changed();
break;
@@ -449,21 +449,21 @@ public abstract class ConfigurationFacade : Object {
}
//
- // bg color name
+ // GTK theme variant
//
- public virtual string get_bg_color_name() {
+ public virtual bool get_gtk_theme_variant() {
try {
- return get_engine().get_string_property(ConfigurableProperty.BG_COLOR_NAME);
+ return get_engine().get_bool_property(ConfigurableProperty.GTK_THEME_VARIANT);
} catch (ConfigurationError err) {
on_configuration_error(err);
- return "";
+ return true;
}
}
- public virtual void set_bg_color_name(string color_name) {
+ public virtual void set_gtk_theme_variant(bool dark) {
try {
- get_engine().set_string_property(ConfigurableProperty.BG_COLOR_NAME, color_name);
+ get_engine().set_bool_property(ConfigurableProperty.GTK_THEME_VARIANT, dark);
} catch (ConfigurationError err) {
on_configuration_error(err);
return;