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/trash-empty.c | |
parent | 18b437378c338287fec39b2e8f2ec2baf04f8cd1 (diff) | |
download | mate-applets-6f81f2bfc41ca4c4e3def03c545b92a15e8832dc.tar.bz2 mate-applets-6f81f2bfc41ca4c4e3def03c545b92a15e8832dc.tar.xz |
trashapplet: migrate to gsettings
Diffstat (limited to 'trashapplet/src/trash-empty.c')
-rw-r--r-- | trashapplet/src/trash-empty.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/trashapplet/src/trash-empty.c b/trashapplet/src/trash-empty.c index bff97460..16b39191 100644 --- a/trashapplet/src/trash-empty.c +++ b/trashapplet/src/trash-empty.c @@ -19,7 +19,6 @@ * 02110-1301, USA. */ -#include <mateconf/mateconf-client.h> #include <gio/gio.h> #include <glib/gi18n.h> @@ -287,9 +286,12 @@ trash_empty_start (GtkWidget *parent) static gboolean trash_empty_require_confirmation (void) { - return mateconf_client_get_bool (mateconf_client_get_default (), - "/apps/caja/preferences/confirm_trash", - NULL); + gboolean confirm_trash; + GSettings *settings; + settings = g_settings_new ("org.mate.caja.preferences"); + confirm_trash = g_settings_get_boolean (settings, "confirm-trash"); + g_object_unref (settings); + return confirm_trash; } static void |