[gnome-settings-daemon] power: Fix crasher when backlight handling is disabled



commit 3d94bbf327134f0b7a6dcf51661c61ed3119a53c
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Jan 25 19:13:44 2013 +0100

    power: Fix crasher when backlight handling is disabled
    
    And make the backlight work again on real machines. Doh!

 plugins/power/gpm-common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/power/gpm-common.c b/plugins/power/gpm-common.c
index 1c20234..860d9e1 100644
--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -1196,7 +1196,7 @@ backlight_available (GnomeRRScreen *rr_screen)
 {
         char *path;
 
-        if (!backlight_helper_disabled ())
+        if (backlight_helper_disabled ())
                 return FALSE;
         if (get_primary_output (rr_screen) != NULL)
                 return TRUE;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]