summaryrefslogtreecommitdiff
path: root/src/config/ConfigurationInterfaces.vala
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2023-12-29 18:43:43 +0100
committerJörg Frings-Fürst <debian@jff.email>2023-12-29 18:43:43 +0100
commit14bc7db2e07c5d1ccfb4d723c9dba395e6c93171 (patch)
tree7b00861348dedd18d3651537128bbe783dab364c /src/config/ConfigurationInterfaces.vala
parent1bf62485f701b52ae27433e3570ac24cd7da886f (diff)
parent67d142325abb0d9345baef77f00a047a7dc1eca3 (diff)
Merge branch 'release/debian/0.32.4-1'HEADdebian/0.32.4-1master
Diffstat (limited to 'src/config/ConfigurationInterfaces.vala')
-rw-r--r--src/config/ConfigurationInterfaces.vala25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/config/ConfigurationInterfaces.vala b/src/config/ConfigurationInterfaces.vala
index 12c7da1..ffd0d31 100644
--- a/src/config/ConfigurationInterfaces.vala
+++ b/src/config/ConfigurationInterfaces.vala
@@ -89,6 +89,7 @@ public enum ConfigurableProperty {
SLIDESHOW_TRANSITION_DELAY,
SLIDESHOW_TRANSITION_EFFECT_ID,
SLIDESHOW_SHOW_TITLE,
+ SLIDESHOW_SHUFFLE,
USE_24_HOUR_TIME,
USE_LOWERCASE_FILENAMES,
@@ -304,6 +305,9 @@ public enum ConfigurableProperty {
case SLIDESHOW_SHOW_TITLE:
return "SLIDESHOW_SHOW_TITLE";
+ case SLIDESHOW_SHUFFLE:
+ return "SLIDESHOW_SHUFFLE";
+
case USE_24_HOUR_TIME:
return "USE_24_HOUR_TIME";
@@ -1782,6 +1786,27 @@ public abstract class ConfigurationFacade : Object {
}
//
+ // Slideshow shuffle
+ //
+ public virtual bool get_slideshow_shuffle() {
+ try {
+ return get_engine().get_bool_property(ConfigurableProperty.SLIDESHOW_SHUFFLE);
+ } catch (ConfigurationError err) {
+ on_configuration_error(err);
+
+ return false;
+ }
+ }
+
+ public virtual void set_slideshow_shuffle(bool shuffle) {
+ try {
+ get_engine().set_bool_property(ConfigurableProperty.SLIDESHOW_SHUFFLE, shuffle);
+ } catch (ConfigurationError err) {
+ on_configuration_error(err);
+ }
+ }
+
+ //
// use 24 hour time
//
public virtual bool get_use_24_hour_time() {