aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-07 15:59:52 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2012-06-07 18:04:23 +0800
commit9d8d7a2e4f9cd772fe69dae15c4c21728e974df3 (patch)
tree17a2409f7b366531c7e54164a5ab4df795190804 /libempathy-gtk/empathy-local-xmpp-assistant-widget.c
parentd51deb6864802a780f7d013dda5bb3c715768bfc (diff)
downloadgsoc2013-empathy-9d8d7a2e4f9cd772fe69dae15c4c21728e974df3.tar
gsoc2013-empathy-9d8d7a2e4f9cd772fe69dae15c4c21728e974df3.tar.gz
gsoc2013-empathy-9d8d7a2e4f9cd772fe69dae15c4c21728e974df3.tar.bz2
gsoc2013-empathy-9d8d7a2e4f9cd772fe69dae15c4c21728e974df3.tar.lz
gsoc2013-empathy-9d8d7a2e4f9cd772fe69dae15c4c21728e974df3.tar.xz
gsoc2013-empathy-9d8d7a2e4f9cd772fe69dae15c4c21728e974df3.tar.zst
gsoc2013-empathy-9d8d7a2e4f9cd772fe69dae15c4c21728e974df3.zip
remove empathy_account_settings_set_* functions
They don't buy us much so let's just pass the GVariant directly. Fix some string leaks in empathy-account-widget-irc.c as well. https://bugzilla.gnome.org/show_bug.cgi?id=677545
Diffstat (limited to 'libempathy-gtk/empathy-local-xmpp-assistant-widget.c')
-rw-r--r--libempathy-gtk/empathy-local-xmpp-assistant-widget.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/libempathy-gtk/empathy-local-xmpp-assistant-widget.c b/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
index cf3803928..1ac8fff59 100644
--- a/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
+++ b/libempathy-gtk/empathy-local-xmpp-assistant-widget.c
@@ -102,13 +102,15 @@ create_salut_account_settings (void)
nickname, first_name, last_name, email, jid);
empathy_account_settings_set_string (settings,
- "nickname", nickname ? nickname : "");
- empathy_account_settings_set_string (settings,
- "first-name", first_name ? first_name : "");
- empathy_account_settings_set_string (settings,
- "last-name", last_name ? last_name : "");
- empathy_account_settings_set_string (settings, "email", email ? email : "");
- empathy_account_settings_set_string (settings, "jid", jid ? jid : "");
+ "nickname", g_variant_new_string (nickname ? nickname : ""));
+ empathy_account_settings_set_ (settings,
+ "first-name", g_variant_new_string (first_name ? first_name : ""));
+ empathy_account_settings_set (settings,
+ "last-name", g_variant_new_string (last_name ? last_name : ""));
+ empathy_account_settings_set (settings, "email",
+ g_variant_new_string (email ? email : ""));
+ empathy_account_settings_set (settings, "jid",
+ g_variant_new_string (jid ? jid : ""));
g_free (nickname);
g_free (first_name);