[Xfce4-commits] [xfce/xfce4-power-manager] 15/17: Settings dialog: Initialize handle brightness option properly

noreply at xfce.org noreply at xfce.org
Wed Jul 23 22:03:05 CEST 2014


This is an automated email from the git hooks/post-receive script.

hjudt pushed a commit to branch master
in repository xfce/xfce4-power-manager.

commit 0ccce1bcb809eec22164beebe438f120cf8890a4
Author: Harald Judt <h.judt at gmx.at>
Date:   Wed Jul 23 15:56:01 2014 +0200

    Settings dialog: Initialize handle brightness option properly
---
 settings/xfpm-settings.c |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index 2aa1266..803fe55 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -1202,6 +1202,7 @@ xfpm_settings_advanced (XfconfChannel *channel, gboolean auth_suspend,
     GtkWidget *lock;
     GtkWidget *label;
     GtkWidget *sleep_mode;
+    GtkWidget *brg_handle_keys;
 
     gchar *list_str;
     gboolean valid;
@@ -1304,6 +1305,13 @@ xfpm_settings_advanced (XfconfChannel *channel, gboolean auth_suspend,
     
     val = xfconf_channel_get_bool (channel, PROPERTIES_PREFIX LOCK_SCREEN_ON_SLEEP, TRUE);
     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(lock), val);
+
+    /*
+     * Handle brightness keys
+     */
+    brg_handle_keys = GTK_WIDGET (gtk_builder_get_object (xml, "enable-brg-keys"));
+    val = xfconf_channel_get_bool (channel, PROPERTIES_PREFIX HANDLE_BRIGHTNESS_KEYS, TRUE);
+    gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON(brg_handle_keys), val);
 }
 
 /* Call gtk_tree_iter_free when done with the tree iter */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list