public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in kde-base/solid/files: solid-4.3.4-hal-2.patch
@ 2010-01-10  9:36 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; only message in thread
From: Samuli Suominen (ssuominen) @ 2010-01-10  9:36 UTC (permalink / raw
  To: gentoo-commits

ssuominen    10/01/10 09:36:50

  Added:                solid-4.3.4-hal-2.patch
  Log:
  make Solid::Control::PowerManager::brightness check if a control for the screen is available wrt upstream #219333.
  (Portage version: 2.2_rc61/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  kde-base/solid/files/solid-4.3.4-hal-2.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/solid/files/solid-4.3.4-hal-2.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/kde-base/solid/files/solid-4.3.4-hal-2.patch?rev=1.1&content-type=text/plain

Index: solid-4.3.4-hal-2.patch
===================================================================
http://websvn.kde.org/trunk/KDE/kdebase/workspace/libs/solid/control/powermanager.cpp?r1=1062504&r2=1069849&pathrev=1069849
https://bugs.kde.org/show_bug.cgi?id=219333#c23

--- libs/solid/control/powermanager.cpp
+++ libs/solid/control/powermanager.cpp
@@ -155,7 +155,7 @@
     if(device.isEmpty())
     {
         Solid::Control::PowerManager::BrightnessControlsList controls = brightnessControlsAvailable();
-        if(controls.size() == 0)
+        if(controls.keys(Solid::Control::PowerManager::Screen).isEmpty())
         {
 #ifdef Q_WS_WIN
             return false;
@@ -185,7 +185,7 @@
     if(device.isEmpty())
     {
         Solid::Control::PowerManager::BrightnessControlsList controls = brightnessControlsAvailable();
-        if(controls.size() == 0)
+        if(controls.keys(Solid::Control::PowerManager::Screen).isEmpty())
         {
 #ifdef Q_WS_WIN
             return false;






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-10  9:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-10  9:36 [gentoo-commits] gentoo-x86 commit in kde-base/solid/files: solid-4.3.4-hal-2.patch Samuli Suominen (ssuominen)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox