aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMihai Moldovan <ionic@ionic.de>2023-08-31 11:58:21 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-08-31 22:49:49 +0200
commit2c782ad01824166cab603076a7bbddbc514788ce (patch)
tree6fa9867e11fc52c93645a2e18aace551abe502fa
parentd5463d3b3b259e13965dc893025dbeda4ea36559 (diff)
downloadarctica-greeter-2c782ad01824166cab603076a7bbddbc514788ce.tar.gz
arctica-greeter-2c782ad01824166cab603076a7bbddbc514788ce.tar.bz2
arctica-greeter-2c782ad01824166cab603076a7bbddbc514788ce.zip
settings: add shutdown-dialog-timeout integer option.
Defaulting to 60, this sets the amount in seconds until the focused button is triggered in the shutdown dialog.
-rw-r--r--data/org.ArcticaProject.arctica-greeter.gschema.xml4
-rw-r--r--src/settings.vala1
2 files changed, 5 insertions, 0 deletions
diff --git a/data/org.ArcticaProject.arctica-greeter.gschema.xml b/data/org.ArcticaProject.arctica-greeter.gschema.xml
index 28002cc..52633c5 100644
--- a/data/org.ArcticaProject.arctica-greeter.gschema.xml
+++ b/data/org.ArcticaProject.arctica-greeter.gschema.xml
@@ -211,5 +211,9 @@
<default>false</default>
<summary>Whether to hide Wayland sessions.</summary>
</key>
+ <key name="shutdown-dialog-timeout" type="i">
+ <default>60</default>
+ <summary>Time in seconds until the shutdown dialog forcefully selects the default action. Set to 0 to disable.</summary>
+ </key>
</schema>
</schemalist>
diff --git a/src/settings.vala b/src/settings.vala
index 7e49894..16b5a82 100644
--- a/src/settings.vala
+++ b/src/settings.vala
@@ -73,6 +73,7 @@ public class AGSettings : Object
public const string KEY_MENUBAR_ALPHA = "menubar-alpha";
public const string KEY_HIDE_X11_SESSIONS = "hide-x11-sessions";
public const string KEY_HIDE_WAYLAND_SESSIONS = "hide-wayland-sessions";
+ public const string KEY_SHUTDOWN_DIALOG_TIMEOUT = "shutdown-dialog-timeout";
public static bool get_boolean (string key)
{