summaryrefslogtreecommitdiff
path: root/trashapplet/src/trash-empty.c
diff options
context:
space:
mode:
Diffstat (limited to 'trashapplet/src/trash-empty.c')
-rw-r--r--trashapplet/src/trash-empty.c10
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