[dia/dia-0-97] Revert part of fix for bug 637462 burning CPU on win32
- From: Hans Breuer <hans src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [dia/dia-0-97] Revert part of fix for bug 637462 burning CPU on win32
- Date: Sun, 25 Sep 2011 15:42:43 +0000 (UTC)
commit 731fdaf57c30c9003f0529f68524449b02cea7e0
Author: Hans Breuer <hans breuer org>
Date: Sat Jan 8 16:43:57 2011 +0100
Revert part of fix for bug 637462 burning CPU on win32
An idle handler to be removed shall return FALSE, I should have
read the API documentation or leave this part untouched.
Strangely enough this only caused 100% on win32, probably the
GSource implementation on *NIX is implemented more efficient.
(cherry picked from commit 1078d6a6d63522c8afd840c21ba49d2ef9e9eb40)
app/dynamic_refresh.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/dynamic_refresh.c b/app/dynamic_refresh.c
index a4b50b9..d38fce1 100644
--- a/app/dynamic_refresh.c
+++ b/app/dynamic_refresh.c
@@ -94,7 +94,7 @@ idle_handler (gpointer data)
}
idle_id = 0;
/* remove the idle handler if there is nothing to refresh */
- return (new_timeout == 0);
+ return FALSE;
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]