mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-30 15:31:34 +00:00
numericsorter: Ignore deprecations
We use g_value_get_char here; replacing it with g_value_get_schar is not entirely trivial, so just ignore deprecations for now.
This commit is contained in:
parent
ff42c94174
commit
99bb8bb3f7
@ -144,6 +144,8 @@ COMPARE_FUNCS(gulong)
|
||||
COMPARE_FUNCS(gint64)
|
||||
COMPARE_FUNCS(guint64)
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
#define NUMERIC_SORT_KEYS(TYPE, key_type, type, default_value) \
|
||||
static void \
|
||||
gtk_ ## type ## _sort_keys_init_key (GtkSortKeys *keys, \
|
||||
@ -210,6 +212,8 @@ NUMERIC_SORT_KEYS(ULONG, gulong, ulong, G_MAXLONG)
|
||||
NUMERIC_SORT_KEYS(INT64, gint64, int64, G_MININT64)
|
||||
NUMERIC_SORT_KEYS(UINT64, guint64, uint64, G_MAXUINT64)
|
||||
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
static GtkSortKeys *
|
||||
gtk_numeric_sort_keys_new (GtkNumericSorter *self)
|
||||
{
|
||||
@ -329,6 +333,8 @@ gtk_numeric_sort_keys_new (GtkNumericSorter *self)
|
||||
return (GtkSortKeys *) result;
|
||||
}
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
|
||||
|
||||
static GtkOrdering
|
||||
gtk_numeric_sorter_compare (GtkSorter *sorter,
|
||||
gpointer item1,
|
||||
@ -450,6 +456,8 @@ out:
|
||||
return result;
|
||||
}
|
||||
|
||||
G_GNUC_END_IGNORE_DEPRECATIONS
|
||||
|
||||
static GtkSorterOrder
|
||||
gtk_numeric_sorter_get_order (GtkSorter *sorter)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user