[Xfce4-commits] <xfce4-power-manager:master> Map XF86XK_SUSPEND to Hibernate

Ali Abdallah aliov at xfce.org
Wed Aug 19 12:14:03 CEST 2009


Updating branch refs/heads/master
         to 0bcf7b2182627a4acc2d053b8332f829d5a9d60c (commit)
       from c89dea930a08dfa52f73a2bb4bfc83a1608a4e0d (commit)

commit 0bcf7b2182627a4acc2d053b8332f829d5a9d60c
Author: Ali Abdallah <aliov at xfce.org>
Date:   Wed Aug 19 12:10:10 2009 +0200

    Map XF86XK_SUSPEND to Hibernate

 src/xfpm-button-xf86.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/xfpm-button-xf86.c b/src/xfpm-button-xf86.c
index fbdce94..db81e85 100644
--- a/src/xfpm-button-xf86.c
+++ b/src/xfpm-button-xf86.c
@@ -151,13 +151,13 @@ xfpm_button_xf86_xevent_key (XfpmButtonXf86 *button, guint keysym , XfpmButtonKe
 
     if ( keycode == 0 )
     {
-	g_critical ("could not map keysym %x to keycode\n", keysym);
+	g_warning ("could not map keysym %x to keycode\n", keysym);
 	return FALSE;
     }
     
     if ( !xfpm_button_xf86_grab_keystring(button, keycode)) 
     {
-    	g_critical ("Failed to grab %i\n", keycode);
+    	g_warning ("Failed to grab %i\n", keycode);
 	return FALSE;
     }
     
@@ -183,8 +183,8 @@ xfpm_button_xf86_setup (XfpmButtonXf86 *button)
 #endif 
 
 #ifdef HAVE_XF86XK_SUSPEND
-    if ( xfpm_button_xf86_xevent_key (button, XF86XK_Suspend, BUTTON_SLEEP) )
-	button->priv->mapped_buttons |= SLEEP_KEY;
+    if ( xfpm_button_xf86_xevent_key (button, XF86XK_Suspend, BUTTON_HIBERNATE) )
+	button->priv->mapped_buttons |= HIBERNATE_KEY;
 #endif 
 
     if ( xfpm_button_xf86_xevent_key (button, XF86XK_Sleep, BUTTON_SLEEP) )



More information about the Xfce4-commits mailing list