Updating branch refs/heads/xrandr-display-settings to 53a1e94d8acbbff280be008665da81e4a99c1fa4 (commit) from c53c31f46580f62a39d3f063806e23b1b3485b9c (commit)
commit 53a1e94d8acbbff280be008665da81e4a99c1fa4 Author: Lionel Le Folgoc <mrpo...@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); _______________________________________________ Xfce4-commits mailing list Xfce4-commits@xfce.org http://foo-projects.org/mailman/listinfo/xfce4-commits