aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-import-pidgin.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-05 22:19:02 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2009-06-05 22:19:02 +0800
commita55a2d6e7dfedc51154e3d73fab40707d87c579f (patch)
tree823a5168710d84fc16b79a7fffdd0ec627a3d8f8 /src/empathy-import-pidgin.c
parent78a59f67de194944fb5c988e100a42e56e9de890 (diff)
downloadgsoc2013-empathy-a55a2d6e7dfedc51154e3d73fab40707d87c579f.tar
gsoc2013-empathy-a55a2d6e7dfedc51154e3d73fab40707d87c579f.tar.gz
gsoc2013-empathy-a55a2d6e7dfedc51154e3d73fab40707d87c579f.tar.bz2
gsoc2013-empathy-a55a2d6e7dfedc51154e3d73fab40707d87c579f.tar.lz
gsoc2013-empathy-a55a2d6e7dfedc51154e3d73fab40707d87c579f.tar.xz
gsoc2013-empathy-a55a2d6e7dfedc51154e3d73fab40707d87c579f.tar.zst
gsoc2013-empathy-a55a2d6e7dfedc51154e3d73fab40707d87c579f.zip
Use tp_asv_get_string instead of messing with GValues.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'src/empathy-import-pidgin.c')
-rw-r--r--src/empathy-import-pidgin.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c
index 0baf70a1a..804936eae 100644
--- a/src/empathy-import-pidgin.c
+++ b/src/empathy-import-pidgin.c
@@ -30,6 +30,7 @@
#include <libmissioncontrol/mc-account.h>
#include <telepathy-glib/util.h>
+#include <telepathy-glib/dbus.h>
#include "empathy-import-dialog.h"
#include "empathy-import-pidgin.h"
@@ -294,11 +295,7 @@ empathy_import_pidgin_load (void)
if (!tp_strdiff (
mc_profile_get_protocol_name (data->profile), "jabber"))
{
- GValue *server;
- server = g_hash_table_lookup (data->settings, "server");
-
- if (server == NULL
- || EMP_STR_EMPTY (g_value_get_string (server)))
+ if (EMP_STR_EMPTY (tp_asv_get_string (data->settings, "server")))
{
g_hash_table_remove (data->settings, "port");
g_hash_table_remove (data->settings, "server");