[Xfce4-commits] <xfce4-power-manager:master> Fix compilation error when compiling with --enable-debug=full
Ali Abdallah
noreply at xfce.org
Tue Dec 22 10:14:01 CET 2009
Updating branch refs/heads/master
to c9d600664c74c8e2456dfacec63834f1ef04511d (commit)
from 30b4737ead26d3039259131fae55fa9b5ae54d07 (commit)
commit c9d600664c74c8e2456dfacec63834f1ef04511d
Author: Ali Abdallah <aliov at xfce.org>
Date: Tue Dec 22 10:09:50 2009 +0100
Fix compilation error when compiling with --enable-debug=full
src/egg-idletime.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/src/egg-idletime.c b/src/egg-idletime.c
index 36ef982..1d3e579 100644
--- a/src/egg-idletime.c
+++ b/src/egg-idletime.c
@@ -39,6 +39,14 @@ static void egg_idletime_finalize (GObject *object);
#define EGG_IDLETIME_GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), EGG_IDLETIME_TYPE, EggIdletimePrivate))
+/*
+ * Undef and use the function instead of the macro
+ * as the macro is buggy.
+ */
+#ifdef XSyncValueAdd
+#undef XSyncValueAdd
+#endif
+
struct EggIdletimePrivate
{
gint sync_event;
@@ -398,7 +406,7 @@ egg_idletime_init (EggIdletime *idletime)
/* gtk_init should do XSyncInitialize for us */
counters = XSyncListSystemCounters (idletime->priv->dpy, &ncounters);
- for (i=0; i < (guint) ncounters && !idletime->priv->idle_counter; i++) {
+ for (i=0; i < (guint)ncounters && !idletime->priv->idle_counter; i++) {
if (strcmp(counters[i].name, "IDLETIME") == 0)
idletime->priv->idle_counter = counters[i].counter;
}
More information about the Xfce4-commits
mailing list