summaryrefslogtreecommitdiff
path: root/cpufreq/src/cpufreq-applet.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-11-24 18:18:51 +0100
committerStefano Karapetsas <[email protected]>2012-11-24 18:18:51 +0100
commit8c30f31702202aed1b7e8c21b204a44ac2dc37cc (patch)
tree57d8a94324b6f320e9d4848b3fc7012217487ba4 /cpufreq/src/cpufreq-applet.c
parentd2d15da67e19e821d051d1b2382885854acd140c (diff)
downloadmate-applets-8c30f31702202aed1b7e8c21b204a44ac2dc37cc.tar.bz2
mate-applets-8c30f31702202aed1b7e8c21b204a44ac2dc37cc.tar.xz
cpufreq: migrate to gsettings
Diffstat (limited to 'cpufreq/src/cpufreq-applet.c')
-rw-r--r--cpufreq/src/cpufreq-applet.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
index 6937fd04..acc24ddb 100644
--- a/cpufreq/src/cpufreq-applet.c
+++ b/cpufreq/src/cpufreq-applet.c
@@ -25,8 +25,9 @@
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
+#include <gio/gio.h>
#include <mate-panel-applet.h>
-#include <mate-panel-applet-mateconf.h>
+#include <mate-panel-applet-gsettings.h>
#include <glib/gi18n.h>
#include <stdlib.h>
#include <string.h>
@@ -942,21 +943,18 @@ cpufreq_applet_setup (CPUFreqApplet *applet)
gchar *ui_path;
AtkObject *atk_obj;
gchar *prefs_key;
+ GSettings *settings;
g_set_application_name (_("CPU Frequency Scaling Monitor"));
gtk_window_set_default_icon_name ("mate-cpu-frequency-applet");
- mate_panel_applet_add_preferences (MATE_PANEL_APPLET (applet),
- "/schemas/apps/cpufreq-applet/prefs", NULL);
-
/* Preferences */
if (applet->prefs)
g_object_unref (applet->prefs);
- prefs_key = mate_panel_applet_get_preferences_key (MATE_PANEL_APPLET (applet));
- applet->prefs = cpufreq_prefs_new (prefs_key);
- g_free (prefs_key);
+ settings = mate_panel_applet_settings_new (MATE_PANEL_APPLET (applet), "org.mate.panel.applet.cpufreq");
+ applet->prefs = cpufreq_prefs_new (settings);
g_signal_connect (G_OBJECT (applet->prefs),
"notify::cpu",