mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 14:30:15 +00:00
Don't use deprecated GValue api
This commit is contained in:
parent
9788bfac89
commit
2a9932cf02
@ -131,7 +131,7 @@ _gtk_tree_data_list_node_to_value (GtkTreeDataList *list,
|
|||||||
g_value_set_boolean (value, (gboolean) list->data.v_int);
|
g_value_set_boolean (value, (gboolean) list->data.v_int);
|
||||||
break;
|
break;
|
||||||
case G_TYPE_CHAR:
|
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;
|
break;
|
||||||
case G_TYPE_UCHAR:
|
case G_TYPE_UCHAR:
|
||||||
g_value_set_uchar (value, (guchar) list->data.v_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);
|
list->data.v_int = g_value_get_boolean (value);
|
||||||
break;
|
break;
|
||||||
case G_TYPE_CHAR:
|
case G_TYPE_CHAR:
|
||||||
list->data.v_char = g_value_get_char (value);
|
list->data.v_char = g_value_get_schar (value);
|
||||||
break;
|
break;
|
||||||
case G_TYPE_UCHAR:
|
case G_TYPE_UCHAR:
|
||||||
list->data.v_uchar = g_value_get_uchar (value);
|
list->data.v_uchar = g_value_get_uchar (value);
|
||||||
@ -345,9 +345,9 @@ _gtk_tree_data_list_compare_func (GtkTreeModel *model,
|
|||||||
retval = 1;
|
retval = 1;
|
||||||
break;
|
break;
|
||||||
case G_TYPE_CHAR:
|
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;
|
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;
|
retval = 0;
|
||||||
else
|
else
|
||||||
retval = 1;
|
retval = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user