summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniele Forsi <dforsi@src.gnome.org>2012-05-10 11:55:41 +0200
committerDaniele Forsi <dforsi@src.gnome.org>2012-05-10 12:06:34 +0200
commitd81e3febf5eeab7b1b45f8c3e6d3a24e0b81a326 (patch)
tree24844f44f7060216ce4ff4447166222800537da9
parent793e978c25d62585614e62e02a8fea74220bb501 (diff)
downloadgnome-bluetooth-d81e3febf5eeab7b1b45f8c3e6d3a24e0b81a326.tar.gz
sendto: fix critical warnings when saving the last used address
Since we can only set a string, replace g_settings_set_value() which was missing the "type" parameter, with g_settings_set_string() which is available since glib 2.26 (GNOME Bluetooth requires 2.29.90 now). Fixes: (nautilus-sendto:3647): GLib-CRITICAL **: `00:00:00:00:00:00' is not a valid GVariant format string (nautilus-sendto:3647): GLib-CRITICAL **: g_variant_new_va: assertion `valid_format_string (format_string, !endptr, NULL)' failed (nautilus-sendto:3647): GLib-GIO-CRITICAL **: g_settings_schema_key_type_check: assertion `value != NULL' failed (nautilus-sendto:3647): GLib-CRITICAL **: g_variant_get_type_string: assertion `value != NULL' failed (nautilus-sendto:3647): GLib-GIO-CRITICAL **: g_settings_set_value: key 'last-used' in 'org.gnome.Bluetooth.nst' expects type 's', but a GVariant of type '(null)' was given
-rw-r--r--sendto/nautilus-sendto-plugin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sendto/nautilus-sendto-plugin.c b/sendto/nautilus-sendto-plugin.c
index cb116827..596f1ea1 100644
--- a/sendto/nautilus-sendto-plugin.c
+++ b/sendto/nautilus-sendto-plugin.c
@@ -98,7 +98,7 @@ save_last_used_obex_device (const char *bdaddr)
GSettings *settings;
settings = g_settings_new (SCHEMA_NAME);
- g_settings_set (settings, PREF_LAST_USED, bdaddr);
+ g_settings_set_string (settings, PREF_LAST_USED, bdaddr);
g_object_unref (settings);
}