diff options
author | Stefano Karapetsas <[email protected]> | 2012-11-24 18:25:27 +0100 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2012-11-24 18:25:27 +0100 |
commit | 6f81f2bfc41ca4c4e3def03c545b92a15e8832dc (patch) | |
tree | d5190b1434b4e78fd99ad06d71dedb9119e16fd5 /trashapplet/src/trashapplet.c | |
parent | 18b437378c338287fec39b2e8f2ec2baf04f8cd1 (diff) | |
download | mate-applets-6f81f2bfc41ca4c4e3def03c545b92a15e8832dc.tar.bz2 mate-applets-6f81f2bfc41ca4c4e3def03c545b92a15e8832dc.tar.xz |
trashapplet: migrate to gsettings
Diffstat (limited to 'trashapplet/src/trashapplet.c')
-rw-r--r-- | trashapplet/src/trashapplet.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/trashapplet/src/trashapplet.c b/trashapplet/src/trashapplet.c index 0edf9f74..6fc5b366 100644 --- a/trashapplet/src/trashapplet.c +++ b/trashapplet/src/trashapplet.c @@ -30,7 +30,6 @@ #include <glib/gi18n.h> #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> -#include <mateconf/mateconf-client.h> #include <gio/gio.h> #include <mate-panel-applet.h> @@ -244,20 +243,21 @@ trash_applet_init (TrashApplet *applet) trash_applet_monitor_changed (applet); } -#define PANEL_ENABLE_ANIMATIONS "/apps/panel/global/enable_animations" +#define PANEL_SCHEMA "org.mate.panel" +#define PANEL_ENABLE_ANIMATIONS "enable-animations" static gboolean trash_applet_button_release (GtkWidget *widget, GdkEventButton *event) { TrashApplet *applet = TRASH_APPLET (widget); - static MateConfClient *client; + static GSettings *settings; - if (client == NULL) - client = mateconf_client_get_default (); + if (settings == NULL) + settings = g_settings_new (PANEL_SCHEMA); if (event->button == 1) { - if (mateconf_client_get_bool (client, PANEL_ENABLE_ANIMATIONS, NULL)) + if (g_settings_get_boolean (settings, PANEL_ENABLE_ANIMATIONS)) xstuff_zoom_animate (widget, NULL); trash_applet_open_folder (NULL, applet); |