[gnome-settings-daemon] power: Fix tests relying on no external monitors



commit 8c0f1481f99a8cb9e8e1930ca534b96142dcaec8
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Sep 17 17:42:51 2013 +0200

    power: Fix tests relying on no external monitors
    
    The old XRandR code would tell us that there's no external monitor,
    but not the new one.

 plugins/power/test.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index 98d9fbe..10f2826 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -78,6 +78,9 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
         self.settings_screensaver = Gio.Settings('org.gnome.desktop.screensaver')
         self.settings_screensaver['lock-enabled'] = False
 
+        # Ensure we set up the external monitor state
+        self.set_has_external_monitor(False)
+
         self.settings_gsd_power = Gio.Settings('org.gnome.settings-daemon.plugins.power')
 
         # start power plugin


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