[gtk+] Don't use deprecated GValue api
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Don't use deprecated GValue api
- Date: Wed, 2 Nov 2011 02:06:02 +0000 (UTC)
commit 2a9932cf02e5a996e85fc190ebb35d4641f0bcea
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Nov 1 22:05:29 2011 -0400
Don't use deprecated GValue api
gtk/gtktreedatalist.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtktreedatalist.c b/gtk/gtktreedatalist.c
index 28ee29c..0026080 100644
--- a/gtk/gtktreedatalist.c
+++ b/gtk/gtktreedatalist.c
@@ -131,7 +131,7 @@ _gtk_tree_data_list_node_to_value (GtkTreeDataList *list,
g_value_set_boolean (value, (gboolean) list->data.v_int);
break;
case G_TYPE_CHAR:
- g_value_set_char (value, (gchar) list->data.v_char);
+ g_value_set_schar (value, (gchar) list->data.v_char);
break;
case G_TYPE_UCHAR:
g_value_set_uchar (value, (guchar) list->data.v_uchar);
@@ -197,7 +197,7 @@ _gtk_tree_data_list_value_to_node (GtkTreeDataList *list,
list->data.v_int = g_value_get_boolean (value);
break;
case G_TYPE_CHAR:
- list->data.v_char = g_value_get_char (value);
+ list->data.v_char = g_value_get_schar (value);
break;
case G_TYPE_UCHAR:
list->data.v_uchar = g_value_get_uchar (value);
@@ -345,9 +345,9 @@ _gtk_tree_data_list_compare_func (GtkTreeModel *model,
retval = 1;
break;
case G_TYPE_CHAR:
- if (g_value_get_char (&a_value) < g_value_get_char (&b_value))
+ if (g_value_get_schar (&a_value) < g_value_get_schar (&b_value))
retval = -1;
- else if (g_value_get_char (&a_value) == g_value_get_char (&b_value))
+ else if (g_value_get_schar (&a_value) == g_value_get_schar (&b_value))
retval = 0;
else
retval = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]