diff -Naur gnome-power-manager-2.24.4-orig/src/gpm-button.c gnome-power-manager-2.24.4/src/gpm-button.c --- gnome-power-manager-2.24.4-orig/src/gpm-button.c 2009-04-05 22:11:24.000000000 -0400 +++ gnome-power-manager-2.24.4/src/gpm-button.c 2009-04-05 22:12:29.000000000 -0400 @@ -307,7 +307,7 @@ g_return_if_fail (device != NULL); g_return_if_fail (details != NULL); - if (strcmp (details, "") == 0) { + if (strlen (details) == 0) { /* no details about the event, so we get more info for type 1 buttons */ hal_gdevice_get_string (device, "button.type", &type, NULL); /* hal may no longer be there */