[empathy] Use tp_asv_get_string instead of messing with GValues.
- From: Jonny Lamb <jonnylamb src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Use tp_asv_get_string instead of messing with GValues.
- Date: Fri, 5 Jun 2009 10:24:18 -0400 (EDT)
commit a55a2d6e7dfedc51154e3d73fab40707d87c579f
Author: Jonny Lamb <jonny lamb collabora co uk>
Date: Fri Jun 5 15:19:02 2009 +0100
Use tp_asv_get_string instead of messing with GValues.
Signed-off-by: Jonny Lamb <jonny lamb collabora co uk>
---
src/empathy-import-pidgin.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c
index 0baf70a..804936e 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");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]