[empathy] Fix typos in plist parser
- From: Xavier Claessens <xclaesse src gnome org>
- To: svn-commits-list gnome org
- Subject: [empathy] Fix typos in plist parser
- Date: Mon, 22 Jun 2009 09:24:44 -0400 (EDT)
commit 0f915c44a5e5a2fd91c5b5b26f5a8e5a78ee7ed3
Author: Xavier Claessens <xclaesse gmail com>
Date: Mon Jun 22 15:24:03 2009 +0200
Fix typos in plist parser
libempathy-gtk/empathy-plist.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libempathy-gtk/empathy-plist.c b/libempathy-gtk/empathy-plist.c
index d7e1844..e5577af 100644
--- a/libempathy-gtk/empathy-plist.c
+++ b/libempathy-gtk/empathy-plist.c
@@ -68,7 +68,7 @@ empathy_plist_parse_real (xmlNode *a_node)
{
char *str_val;
char *end_ptr;
- gfloat double_val;
+ gdouble double_val;
str_val = (char *) xmlNodeGetContent (a_node);
double_val = g_ascii_strtod (str_val, &end_ptr);
@@ -78,7 +78,8 @@ empathy_plist_parse_real (xmlNode *a_node)
}
xmlFree (str_val);
- return tp_g_value_slice_new_double (double_val);}
+ return tp_g_value_slice_new_double (double_val);
+}
static GValue *
empathy_plist_parse_boolean (xmlNode *a_node)
@@ -93,7 +94,7 @@ empathy_plist_parse_boolean (xmlNode *a_node)
return NULL;
}
- return tp_g_value_slice_new_int (bool_val);
+ return tp_g_value_slice_new_boolean (bool_val);
}
static GValue *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]