gnome-power-manager r3168 - in trunk: . src



Author: rhughes
Date: Mon Jan 19 16:20:49 2009
New Revision: 3168
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3168&view=rev

Log:
2009-01-19  Richard Hughes  <richard hughsie com>

* src/gpm-brightness-xrandr.c:
(gpm_brightness_xrandr_update_cache):
This patch relies on randr.h i.e. on the RandR procol rather than on the
xserver itself. This will prevent us from adding the xserver development
libraries as build dependencies (thus preserving the previous behaviour).

Patch from Alberto Milone <albertomilone alice it>, many thanks.


Modified:
   trunk/ChangeLog
   trunk/src/gpm-brightness-xrandr.c

Modified: trunk/src/gpm-brightness-xrandr.c
==============================================================================
--- trunk/src/gpm-brightness-xrandr.c	(original)
+++ trunk/src/gpm-brightness-xrandr.c	Mon Jan 19 16:20:49 2009
@@ -614,7 +614,7 @@
 		/* XRRGetScreenResourcesCurrent is less expensive than
 		   XRRGetScreenResources, however it is available only
 		   in RandR 1.3 or higher */
-#ifdef RANDR_13_INTERFACE
+#if (RANDR_MAJOR == 1 && RANDR_MINOR >= 3)
 		resource = XRRGetScreenResourcesCurrent (brightness->priv->dpy, root);
 #else
 		resource = XRRGetScreenResources (brightness->priv->dpy, root);



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