[empathy] Convert Pidgin's int values to uints



commit ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Fri Sep 4 13:25:13 2009 +0200

    Convert Pidgin's int values to uints

 src/empathy-import-pidgin.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-import-pidgin.c b/src/empathy-import-pidgin.c
index 23b1d84..877eb26 100644
--- a/src/empathy-import-pidgin.c
+++ b/src/empathy-import-pidgin.c
@@ -140,8 +140,11 @@ import_dialog_pidgin_parse_setting (EmpathyImportAccountData *data,
   else if (!tp_strdiff (type, "int"))
     {
       i = (gint) g_ascii_strtod (content, NULL);
-      value = tp_g_value_slice_new (G_TYPE_INT);
-      g_value_set_int (value, i);
+      /* FIXME: Pidgin uses signed int values whereas Telepathy usually
+       * uses unsigned int values.
+       */
+      value = tp_g_value_slice_new (G_TYPE_UINT);
+      g_value_set_uint (value, (guint) i);
     }
   else if (!tp_strdiff (type, "string"))
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]