[Xfce4-commits] [xfce/xfce4-power-manager] 01/01: Also check permissions for lid-actions on AC
noreply at xfce.org
noreply at xfce.org
Sat Jun 14 15:40:00 CEST 2014
This is an automated email from the git hooks/post-receive script.
ochosi pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit 00cdd249b26a73bdd7fc95e7d7ca33562b1dcd04
Author: Harald Judt <h.judt at gmx.at>
Date: Sat Jun 14 15:39:36 2014 +0200
Also check permissions for lid-actions on AC
---
settings/xfpm-settings.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/settings/xfpm-settings.c b/settings/xfpm-settings.c
index 4712502..5419e8d 100644
--- a/settings/xfpm-settings.c
+++ b/settings/xfpm-settings.c
@@ -1036,13 +1036,13 @@ xfpm_settings_on_ac (XfconfChannel *channel, gboolean auth_suspend,
gtk_list_store_append(list_store, &iter);
gtk_list_store_set (list_store, &iter, 0, _("Switch off display"), 1, LID_TRIGGER_NOTHING, -1);
- if ( can_suspend )
+ if ( can_suspend && auth_suspend )
{
gtk_list_store_append(list_store, &iter);
gtk_list_store_set (list_store, &iter, 0, _("Suspend"), 1, LID_TRIGGER_SUSPEND, -1);
}
- if ( can_hibernate )
+ if ( can_hibernate && auth_hibernate )
{
gtk_list_store_append(list_store, &iter);
gtk_list_store_set (list_store, &iter, 0, _("Hibernate"), 1, LID_TRIGGER_HIBERNATE, -1);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list