[Xfce4-commits] <xfce4-settings:xrandr-display-settings> Add missing #ifdef for randr 1.2 only functions

Jérôme Guelfucci noreply at xfce.org
Sat Jun 12 09:58:04 CEST 2010


Updating branch refs/heads/xrandr-display-settings
         to de2e04c06e95b2bdd49cc186fca701f4c141e761 (commit)
       from d9dff72673e94e1b0f37a024868294a11c4fc674 (commit)

commit de2e04c06e95b2bdd49cc186fca701f4c141e761
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date:   Fri Jun 11 18:28:51 2010 +0200

    Add missing #ifdef for randr 1.2 only functions

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

diff --git a/xfce4-settings-helper/displays.c b/xfce4-settings-helper/displays.c
index 863c3ab..ae19806 100644
--- a/xfce4-settings-helper/displays.c
+++ b/xfce4-settings-helper/displays.c
@@ -122,6 +122,7 @@ xfce_displays_helper_init (XfceDisplaysHelper *helper)
             g_signal_connect (G_OBJECT (helper->channel), "property-changed", 
                               G_CALLBACK (xfce_displays_helper_channel_property_changed), helper);
 
+#ifdef HAS_RANDR_ONE_POINT_TWO
             if (major == 1 && minor >= 2)
             {
                 helper->has_1_3 = (major == 1 && minor >= 3);
@@ -129,6 +130,7 @@ xfce_displays_helper_init (XfceDisplaysHelper *helper)
                 xfce_displays_helper_channel_apply (helper, "Default");
             }
             else
+#endif
             {
                 /* restore the default scheme */
                 xfce_displays_helper_channel_apply_legacy (helper, "Default");



More information about the Xfce4-commits mailing list