summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-prefs.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-04-04 15:43:25 +0200
committerStefano Karapetsas <[email protected]>2013-04-04 15:43:25 +0200
commita48819d511d123db2e45c7f159169910c0cf6dc9 (patch)
tree7569a482a506d52b8dcdbf769d7cfb6218c5b268 /cpufreq/src/cpufreq-prefs.c
parent1c969fecd532e54f40652259946b1aad4b51b078 (diff)
downloadmate-applets-a48819d511d123db2e45c7f159169910c0cf6dc9.tar.bz2
mate-applets-a48819d511d123db2e45c7f159169910c0cf6dc9.tar.xz
cpufreq: Fix GSettings init
Diffstat (limited to 'cpufreq/src/cpufreq-prefs.c')
-rw-r--r--cpufreq/src/cpufreq-prefs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpufreq/src/cpufreq-prefs.c b/cpufreq/src/cpufreq-prefs.c
index 38c0ca07..6fdfff43 100644
--- a/cpufreq/src/cpufreq-prefs.c
+++ b/cpufreq/src/cpufreq-prefs.c
@@ -238,7 +238,6 @@ static void
cpufreq_prefs_setup (CPUFreqPrefs *prefs)
{
g_assert (G_IS_SETTINGS (prefs->priv->settings));
- g_assert (prefs->priv->settings != NULL);
prefs->priv->cpu = g_settings_get_int (prefs->priv->settings, "cpu");
prefs->priv->show_mode = g_settings_get_int (prefs->priv->settings, "show-mode");
@@ -256,6 +255,7 @@ cpufreq_prefs_new (GSettings *settings)
"gsettings", settings,
NULL));
+ prefs->priv->settings = settings;
cpufreq_prefs_setup (prefs);
return prefs;