diff options
author | Stefano Karapetsas <[email protected]> | 2013-04-04 15:43:25 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-04-04 15:43:25 +0200 |
commit | a48819d511d123db2e45c7f159169910c0cf6dc9 (patch) | |
tree | 7569a482a506d52b8dcdbf769d7cfb6218c5b268 /cpufreq/src/cpufreq-prefs.c | |
parent | 1c969fecd532e54f40652259946b1aad4b51b078 (diff) | |
download | mate-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.c | 2 |
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; |