summaryrefslogtreecommitdiff
path: root/src/obexpush.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2012-09-28 12:34:50 +0200
committerraveit65 <[email protected]>2012-09-28 12:34:50 +0200
commit99c20ca79435c5ab1130258801008b963dd2d098 (patch)
tree4fe7aa5c4c35e4bd785ef6e293eea33651195745 /src/obexpush.c
parent8b06eb18651798d1f02bd358fa43119d914a744f (diff)
downloadmate-user-share-99c20ca79435c5ab1130258801008b963dd2d098.tar.bz2
mate-user-share-99c20ca79435c5ab1130258801008b963dd2d098.tar.xz
convert to gsettings
Diffstat (limited to 'src/obexpush.c')
-rw-r--r--src/obexpush.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/obexpush.c b/src/obexpush.c
index 75238f5..cb3cde0 100644
--- a/src/obexpush.c
+++ b/src/obexpush.c
@@ -30,7 +30,6 @@
#include <gtk/gtk.h>
#include <libmatenotify/notify.h>
#include <dbus/dbus-glib.h>
-#include <mateconf/mateconf-client.h>
#include <dbus/dbus-glib-lowlevel.h>
#include <canberra-gtk.h>
@@ -43,6 +42,8 @@
#define DBUS_TYPE_G_STRING_VARIANT_HASHTABLE (dbus_g_type_get_map ("GHashTable", G_TYPE_STRING, G_TYPE_STRING))
+#define GSETTINGS_SCHEMA "org.mate.FileSharing"
+
static DBusGConnection *connection = NULL;
static DBusGProxy *manager_proxy = NULL;
static DBusGProxy *server_proxy = NULL;
@@ -348,7 +349,7 @@ static void
transfer_completed_cb (DBusGProxy *session,
gpointer user_data)
{
- MateConfClient *client;
+ GSettings *settings;
gboolean display_notify;
const char *filename;
@@ -359,9 +360,9 @@ transfer_completed_cb (DBusGProxy *session,
if (filename == NULL)
return;
- client = mateconf_client_get_default ();
- display_notify = mateconf_client_get_bool (client, FILE_SHARING_BLUETOOTH_OBEXPUSH_NOTIFY, NULL);
- g_object_unref (client);
+ settings = g_settings_new (GSETTINGS_SCHEMA);
+ display_notify = g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_OBEXPUSH_NOTIFY);
+ g_object_unref (settings);
if (display_notify) {
show_notification (filename);