[Xfce4-commits] <xfce4-settings:master> Add missing #ifdef for randr 1.2 only functions
Nick Schermer
noreply at xfce.org
Sat Aug 28 23:04:06 CEST 2010
Updating branch refs/heads/master
to 94acfd7b53ed1a347fea067cd606be6b3c1184cd (commit)
from 4911b706af64408af3265117f97c69a75952975e (commit)
commit 94acfd7b53ed1a347fea067cd606be6b3c1184cd
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