summaryrefslogtreecommitdiff
path: root/cpufreq
diff options
context:
space:
mode:
authorCallum McKenzie <callum@src.gnome.org>2009-03-19 23:33:42 +0000
committerCallum McKenzie <callum@src.gnome.org>2009-03-19 23:33:42 +0000
commit4f399666321a8fb4e0a9b871e76e50be07af253e (patch)
tree68ffbe96e67ac1bc72879bd0e6cfdc36123f9478 /cpufreq
parent2e6a6aa8afde5365579a0a2053948249ed5cab22 (diff)
Patch from gQuigs to replace g_timeout_add
with g_timeout_add_seconds where appropriate. Bug 57360. svn path=/trunk/; revision=11390
Diffstat (limited to 'cpufreq')
-rw-r--r--cpufreq/ChangeLog6
-rw-r--r--cpufreq/src/cpufreq-monitor.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/cpufreq/ChangeLog b/cpufreq/ChangeLog
index 261450a27..d59b59cf7 100644
--- a/cpufreq/ChangeLog
+++ b/cpufreq/ChangeLog
@@ -1,3 +1,9 @@
+2009-03-20 Callum McKenzie <callum@spooky-possum.org>
+
+ * src/cpufreq-monitor.c: Patch from gQuigs to replace
+ g_timeout_add with g_timeout_add_seconds where appropriate. Bug
+ 57360.
+
==================== 2.26.0 ======================
2009-03-08 Albert Damen <albrt@gmx.net>
diff --git a/cpufreq/src/cpufreq-monitor.c b/cpufreq/src/cpufreq-monitor.c
index c5dbc069d..150fbfce3 100644
--- a/cpufreq/src/cpufreq-monitor.c
+++ b/cpufreq/src/cpufreq-monitor.c
@@ -24,7 +24,7 @@
#define CPUFREQ_MONITOR_GET_PRIVATE(obj) \
(G_TYPE_INSTANCE_GET_PRIVATE((obj), CPUFREQ_TYPE_MONITOR, CPUFreqMonitorPrivate))
-#define CPUFREQ_MONITOR_INTERVAL 1000
+#define CPUFREQ_MONITOR_INTERVAL 1
/* Properties */
enum {
@@ -316,7 +316,7 @@ cpufreq_monitor_run (CPUFreqMonitor *monitor)
return;
monitor->priv->timeout_handler =
- g_timeout_add (CPUFREQ_MONITOR_INTERVAL,
+ g_timeout_add_seconds (CPUFREQ_MONITOR_INTERVAL,
(GSourceFunc) cpufreq_monitor_run_cb,
(gpointer) monitor);
}