]> git.0d.be Git - empathy.git/commitdiff
Use tp_asv_get_string instead of messing with GValues.
authorJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 5 Jun 2009 14:19:02 +0000 (15:19 +0100)
committerJonny Lamb <jonny.lamb@collabora.co.uk>
Fri, 5 Jun 2009 14:19:02 +0000 (15:19 +0100)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
src/empathy-import-pidgin.c

index 0baf70a1a1fc712257cf6ee70b243632013d6c4b..804936eaec94f38c089f2245691a00b0fe11a3cd 100644 (file)
@@ -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");