Xfce Power Manager Settings
- Security
- Light Locker
- Lock screen when system is going for sleep
GtkCheckButton to GtkSwitch
---
data/interfaces/xfpm-settings.ui | 21 ++++++++++++++++-----
settings/xfpm-settings.c | 4 ++++
2 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/data/interfaces/xfpm-settings.ui b/data/interfaces/xfpm-settings.ui
index b766920..829d684 100644
--- a/data/interfaces/xfpm-settings.ui
+++ b/data/interfaces/xfpm-settings.ui
@@ -1684,13 +1684,24 @@
-
+
+
+ True
+ False
+ 0
+ Lock screen when system is going for sleep
+ True
+ end
0
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index 5330065..6c88bd7 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -2243,6 +2243,10 @@ xfpm_settings_dialog_new (XfconfChannel *channel, gboolean auth_suspend,
xfconf_g_property_bind (channel, PROPERTIES_PREFIX SHOW_TRAY_ICON_CFG,
G_TYPE_BOOLEAN, switch_widget, "active");
+ switch_widget = GTK_WIDGET (gtk_builder_get_object (xml, "light-locker-suspend"));
+ xfconf_g_property_bind (channel, PROPERTIES_PREFIX LOCK_SCREEN_ON_SLEEP,
+ G_TYPE_BOOLEAN, switch_widget, "active");
+
dialog = GTK_WIDGET (gtk_builder_get_object (xml, "xfpm-settings-dialog"));
nt = GTK_WIDGET (gtk_builder_get_object (xml, "main-notebook"));
--
2.1.0