summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2012-09-28 12:50:39 +0200
committerraveit65 <[email protected]>2012-09-28 12:50:39 +0200
commit8326e3b51e36244b8ae04f4d8dd010b9fbf25af1 (patch)
tree1275b358b2ed0cf89c59abdaf9e2dc1528d0aacd /src
parent99c20ca79435c5ab1130258801008b963dd2d098 (diff)
downloadmate-user-share-8326e3b51e36244b8ae04f4d8dd010b9fbf25af1.tar.bz2
mate-user-share-8326e3b51e36244b8ae04f4d8dd010b9fbf25af1.tar.xz
fix gsettings in user_share.c
Diffstat (limited to 'src')
-rw-r--r--src/user_share.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/user_share.c b/src/user_share.c
index fab1cee..83f005c 100644
--- a/src/user_share.c
+++ b/src/user_share.c
@@ -292,7 +292,7 @@ require_password_changed (GSettings *settings, gchar *key, gpointer data)
static gboolean
disabled_timeout_callback (gpointer user_data)
{
- GSettings* settings = (GSettings*) user_data;
+ GSettings *settings = (GSettings *) user_data;
http_down ();
if (g_settings_get_boolean (settings, FILE_SHARING_BLUETOOTH_ENABLED) == FALSE &&
@@ -412,7 +412,7 @@ x_io_error_handler (Display *xdisplay)
int
main (int argc, char **argv)
{
- GSettings* gsettings;
+ GSettings *settings;
Display *xdisplay;
int x_fd;
Window selection_owner;
@@ -461,10 +461,10 @@ main (int argc, char **argv)
migrate_old_configuration ();
- gsettings = g_settings_new (GSETTINGS_SCHEMA);
- if (g_settings_get_boolean (gsettings, FILE_SHARING_ENABLED) == FALSE &&
- g_settings_get_boolean (gsettings, FILE_SHARING_BLUETOOTH_ENABLED) == FALSE &&
- g_settings_get_boolean (gsettings, FILE_SHARING_BLUETOOTH_OBEXPUSH_ENABLED) == FALSE)
+ settings = g_settings_new (GSETTINGS_SCHEMA);
+ 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)
return 1;
x_fd = ConnectionNumber (xdisplay);
@@ -483,11 +483,11 @@ main (int argc, char **argv)
consolekit_init ();
/* Initial setting */
- file_sharing_enabled_changed (gsettings, NULL, NULL);
- file_sharing_bluetooth_enabled_changed (gsettings, NULL, NULL);
- file_sharing_bluetooth_obexpush_accept_files_changed (gsettings, NULL, NULL);
- file_sharing_bluetooth_obexpush_notify_changed (gsettings, NULL, NULL);
- file_sharing_bluetooth_obexpush_enabled_changed (gsettings, NULL, NULL);
+ file_sharing_enabled_changed (settings, NULL, NULL);
+ file_sharing_bluetooth_enabled_changed (settings, NULL, NULL);
+ file_sharing_bluetooth_obexpush_accept_files_changed (settings, NULL, NULL);
+ file_sharing_bluetooth_obexpush_notify_changed (settings, NULL, NULL);
+ file_sharing_bluetooth_obexpush_enabled_changed (settings, NULL, NULL);
gtk_main ();