summaryrefslogtreecommitdiff
path: root/src/obexpush.c
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2012-10-03 07:33:50 -0700
committerStefano Karapetsas <[email protected]>2012-10-03 07:33:50 -0700
commit8af5555721e4791d09db088a41c784bf2c4fd7f5 (patch)
treefb36698c7c1aef79bcc1fd33cf56596d4cdd4dd9 /src/obexpush.c
parent8b06eb18651798d1f02bd358fa43119d914a744f (diff)
parentc0ea7fefe55f518145afd68f201bb6ed07d6e866 (diff)
downloadmate-user-share-8af5555721e4791d09db088a41c784bf2c4fd7f5.tar.bz2
mate-user-share-8af5555721e4791d09db088a41c784bf2c4fd7f5.tar.xz
Merge pull request #2 from NiceandGently/master
convert mateconf 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);