[Goodies-commits] r7172 - in xfce4-power-manager/trunk: . src

Ali Abdallah aliov at xfce.org
Sun Apr 12 21:29:19 CEST 2009


Author: aliov
Date: 2009-04-12 19:29:18 +0000 (Sun, 12 Apr 2009)
New Revision: 7172

Modified:
   xfce4-power-manager/trunk/ChangeLog
   xfce4-power-manager/trunk/src/xfpm-button-hal.c
Log:
Enable HAL power button event even if the button is correctly mapped in X, as X doesn't always generates events for it

Modified: xfce4-power-manager/trunk/ChangeLog
===================================================================
--- xfce4-power-manager/trunk/ChangeLog	2009-04-12 18:24:56 UTC (rev 7171)
+++ xfce4-power-manager/trunk/ChangeLog	2009-04-12 19:29:18 UTC (rev 7172)
@@ -1,4 +1,7 @@
 
+2009-04-12 21:29 Ali aliov at xfce.org 
+	 * : Enable HAL power button event even if the button is correctly mapped in X, as X doesn't always generates events for it
+
 2009-04-12 17:09 Ali aliov at xfce.org 
 	 * : Disable not mapped keys in the settings dialog
 

Modified: xfce4-power-manager/trunk/src/xfpm-button-hal.c
===================================================================
--- xfce4-power-manager/trunk/src/xfpm-button-hal.c	2009-04-12 18:24:56 UTC (rev 7171)
+++ xfce4-power-manager/trunk/src/xfpm-button-hal.c	2009-04-12 19:29:18 UTC (rev 7172)
@@ -70,7 +70,7 @@
     if ( !xfpm_strequal (condition, "ButtonPressed") )
 	return;
 
-    if ( xfpm_strequal (detail, "power")  && !(bt->priv->keys & POWER_KEY) )
+    if ( xfpm_strequal (detail, "power") )
     {
 	TRACE ("Emitting signal button press condition %s detail %s", condition, detail);
 	g_signal_emit (G_OBJECT (bt), signals [HAL_BUTTON_PRESSED], 0, BUTTON_POWER_OFF);




More information about the Goodies-commits mailing list