[gnome-user-share] data: Rename the macro for the schemas name
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-user-share] data: Rename the macro for the schemas name
- Date: Fri, 24 Aug 2012 15:26:59 +0000 (UTC)
commit 6a23e2240ec3fdd04d7e60f737cd2882e1cacb0c
Author: Bastien Nocera <hadess hadess net>
Date: Fri Aug 24 16:26:07 2012 +0100
data: Rename the macro for the schemas name
src/file-share-properties.c | 2 +-
src/http.c | 2 +-
src/obexftp.c | 2 +-
src/obexpush.c | 2 +-
src/user_share-private.h | 2 +-
src/user_share.c | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/file-share-properties.c b/src/file-share-properties.c
index bf08b2c..77522a6 100644
--- a/src/file-share-properties.c
+++ b/src/file-share-properties.c
@@ -482,7 +482,7 @@ main (int argc, char *argv[])
app = gtk_application_new ("org.gnome.user-share.properties",
G_APPLICATION_FLAGS_NONE);
- settings = g_settings_new (GSETTINGS_DOMAIN);
+ settings = g_settings_new (GNOME_USER_SHARE_SCHEMAS);
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
diff --git a/src/http.c b/src/http.c
index 3d75d21..763a201 100644
--- a/src/http.c
+++ b/src/http.c
@@ -344,7 +344,7 @@ spawn_httpd (int port, pid_t *pid_out)
argv[i++] = "-C";
free3 = argv[i++] = g_strdup_printf ("Listen %d", port);
- settings = g_settings_new (GSETTINGS_DOMAIN);
+ settings = g_settings_new (GNOME_USER_SHARE_SCHEMAS);
str = g_settings_get_string (settings,
FILE_SHARING_REQUIRE_PASSWORD);
diff --git a/src/obexftp.c b/src/obexftp.c
index ada35f2..49c0062 100644
--- a/src/obexftp.c
+++ b/src/obexftp.c
@@ -44,7 +44,7 @@ obexftp_up (void)
char *public_dir, *server;
gboolean allow_write, require_pairing;
- settings = g_settings_new (GSETTINGS_DOMAIN);
+ settings = g_settings_new (GNOME_USER_SHARE_SCHEMAS);
require_pairing = g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_REQUIRE_PAIRING);
server = NULL;
diff --git a/src/obexpush.c b/src/obexpush.c
index fd93942..a91c82e 100644
--- a/src/obexpush.c
+++ b/src/obexpush.c
@@ -351,7 +351,7 @@ transfer_completed_cb (DBusGProxy *session,
if (filename == NULL)
return;
- settings = g_settings_new (GSETTINGS_DOMAIN);
+ settings = g_settings_new (GNOME_USER_SHARE_SCHEMAS);
display_notify = g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_OBEXPUSH_NOTIFY);
g_object_unref (settings);
diff --git a/src/user_share-private.h b/src/user_share-private.h
index 8a1bc01..a7ef3fd 100644
--- a/src/user_share-private.h
+++ b/src/user_share-private.h
@@ -25,7 +25,7 @@
#ifndef _USER_SHARE_PRIVATE_H_
#define _USER_SHARE_PRIVATE_H_
-#define GSETTINGS_DOMAIN "org.gnome.desktop.file-sharing"
+#define GNOME_USER_SHARE_SCHEMAS "org.gnome.desktop.file-sharing"
#define FILE_SHARING_ENABLED "enabled"
#define FILE_SHARING_BLUETOOTH_ENABLED "bluetooth-enabled"
diff --git a/src/user_share.c b/src/user_share.c
index e3512f8..0eac8b2 100644
--- a/src/user_share.c
+++ b/src/user_share.c
@@ -483,7 +483,7 @@ main (int argc, char **argv)
migrate_old_configuration ();
- settings = g_settings_new (GSETTINGS_DOMAIN);
+ settings = g_settings_new (GNOME_USER_SHARE_SCHEMAS);
if (g_settings_get_boolean (settings, FILE_SHARING_ENABLED) == FALSE &&
g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_ENABLED) == FALSE &&
g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_OBEXPUSH_ENABLED) == FALSE)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]