[gnome-settings-daemon] power: Update for gnome-desktop API change



commit 7ae8ef1dad45d074dab86252b0962b220cff2135
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Mar 4 12:49:54 2013 +0100

    power: Update for gnome-desktop API change

 plugins/power/gpm-common.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/power/gpm-common.c b/plugins/power/gpm-common.c
index 596b1ef..e004901 100644
--- a/plugins/power/gpm-common.c
+++ b/plugins/power/gpm-common.c
@@ -1169,7 +1169,7 @@ get_primary_output (GnomeRRScreen *rr_screen)
 
         for (i = 0; outputs[i] != NULL; i++) {
                 if (gnome_rr_output_is_connected (outputs[i]) &&
-                    gnome_rr_output_is_laptop (outputs[i]) &&
+                    gnome_rr_output_is_builtin_display (outputs[i]) &&
                     gnome_rr_output_get_backlight_min (outputs[i]) >= 0 &&
                     gnome_rr_output_get_backlight_max (outputs[i]) > 0) {
                         output = outputs[i];
@@ -1717,7 +1717,7 @@ external_monitor_is_connected (GnomeRRScreen *screen)
         outputs = gnome_rr_screen_list_outputs (screen);
         for (i = 0; outputs[i] != NULL; i++) {
                 if (randr_output_is_on (outputs[i]) &&
-                    !gnome_rr_output_is_laptop (outputs[i]))
+                    !gnome_rr_output_is_builtin_display (outputs[i]))
                         return TRUE;
         }
 


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