summaryrefslogtreecommitdiff
path: root/cpufreq
diff options
context:
space:
mode:
Diffstat (limited to 'cpufreq')
-rw-r--r--cpufreq/src/cpufreq-applet.c5
-rw-r--r--cpufreq/src/cpufreq-monitor-libcpufreq.c10
-rw-r--r--cpufreq/src/cpufreq-monitor-sysfs.c10
3 files changed, 15 insertions, 10 deletions
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index d965ed93..87fbc7af 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -813,8 +813,9 @@ cpufreq_applet_setup (CPUFreqApplet *applet)
(gpointer) applet);
/* Monitor */
- applet->monitor = cpufreq_monitor_factory_create_monitor (
- cpufreq_prefs_get_cpu (applet->prefs));
+ applet->monitor =
+ cpufreq_monitor_factory_create_monitor (cpufreq_prefs_get_cpu (applet->prefs));
+
cpufreq_monitor_run (applet->monitor);
g_signal_connect_swapped (G_OBJECT (applet->monitor), "changed",
G_CALLBACK (cpufreq_applet_update),
diff --git a/cpufreq/src/cpufreq-monitor-libcpufreq.c b/cpufreq/src/cpufreq-monitor-libcpufreq.c
index d61349e0..cd0d3e53 100644
--- a/cpufreq/src/cpufreq-monitor-libcpufreq.c
+++ b/cpufreq/src/cpufreq-monitor-libcpufreq.c
@@ -62,10 +62,12 @@ cpufreq_monitor_libcpufreq_constructor (GType type,
gulong max_freq, min_freq;
guint cpu;
- object = G_OBJECT_CLASS (
- cpufreq_monitor_libcpufreq_parent_class)->constructor (type,
- n_construct_properties,
- construct_params);
+ object =
+ G_OBJECT_CLASS (cpufreq_monitor_libcpufreq_parent_class)
+ ->constructor (type,
+ n_construct_properties,
+ construct_params);
+
g_object_get (G_OBJECT (object),
"cpu", &cpu,
NULL);
diff --git a/cpufreq/src/cpufreq-monitor-sysfs.c b/cpufreq/src/cpufreq-monitor-sysfs.c
index 0d7f378a..8ea88de2 100644
--- a/cpufreq/src/cpufreq-monitor-sysfs.c
+++ b/cpufreq/src/cpufreq-monitor-sysfs.c
@@ -83,10 +83,12 @@ cpufreq_monitor_sysfs_constructor (GType type,
guint cpu;
GError *error = NULL;
- object = G_OBJECT_CLASS (
- cpufreq_monitor_sysfs_parent_class)->constructor (type,
- n_construct_properties,
- construct_params);
+ object =
+ G_OBJECT_CLASS (cpufreq_monitor_sysfs_parent_class)
+ ->constructor (type,
+ n_construct_properties,
+ construct_params);
+
g_object_get (G_OBJECT (object),
"cpu", &cpu,
NULL);