[Xfce4-commits] <xfce4-settings:master> Fix improper check of the returned value

Nick Schermer noreply at xfce.org
Sat Aug 28 23:02:18 CEST 2010


Updating branch refs/heads/master
         to 0d6cb9b976e99b6c9208308b9f7ae6b8a59ef225 (commit)
       from 1cb879817b46bba5bd976e2a107b531edeaeaf8b (commit)

commit 0d6cb9b976e99b6c9208308b9f7ae6b8a59ef225
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date:   Sun Jun 6 00:32:30 2010 +0200

    Fix improper check of the returned value

 xfce4-settings-helper/displays.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/xfce4-settings-helper/displays.c b/xfce4-settings-helper/displays.c
index a682b01..e592598 100644
--- a/xfce4-settings-helper/displays.c
+++ b/xfce4-settings-helper/displays.c
@@ -203,8 +203,8 @@ xfce_displays_helper_channel_apply (XfceDisplaysHelper *helper,
     resources = XRRGetScreenResources (xdisplay, GDK_WINDOW_XID (root_window));
 
     /* get the range of screen sizes */
-    if (XRRGetScreenSizeRange (xdisplay, GDK_WINDOW_XID (root_window), &min_width,
-                               &min_height, &max_width, &max_height) != Success)
+    if (!XRRGetScreenSizeRange (xdisplay, GDK_WINDOW_XID (root_window),
+                                &min_width, &min_height, &max_width, &max_height))
     {
         g_warning ("Unable to get the range of screen sizes, aborting.");
         XRRFreeScreenResources (resources);



More information about the Xfce4-commits mailing list