diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-09-04 19:25:13 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-09-06 20:56:31 +0800 |
commit | ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63 (patch) | |
tree | 2835e95bf4adda2f5d50abe66fe745979e5a0b78 /src | |
parent | e0c20c667a0a15a07b7cab30337f1078038968f3 (diff) | |
download | gsoc2013-empathy-ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63.tar gsoc2013-empathy-ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63.tar.gz gsoc2013-empathy-ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63.tar.bz2 gsoc2013-empathy-ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63.tar.lz gsoc2013-empathy-ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63.tar.xz gsoc2013-empathy-ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63.tar.zst gsoc2013-empathy-ef2cd4e8f0e24cf9e023fc10e8c61315e2734b63.zip |
Convert Pidgin's int values to uints
Diffstat (limited to 'src')
-rw-r--r-- | 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 23b1d84f5..877eb26b6 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")) { |