diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-07 15:59:52 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2012-06-07 18:04:23 +0800 |
commit | 9d8d7a2e4f9cd772fe69dae15c4c21728e974df3 (patch) | |
tree | 17a2409f7b366531c7e54164a5ab4df795190804 /libempathy-gtk/empathy-local-xmpp-assistant-widget.c | |
parent | d51deb6864802a780f7d013dda5bb3c715768bfc (diff) | |
download | gsoc2013-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.c | 16 |
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); |