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:
Matthias Clasen 2020-07-31 11:36:03 -04:00
parent ff42c94174
commit 99bb8bb3f7

View File

@ -144,6 +144,8 @@ COMPARE_FUNCS(gulong)
COMPARE_FUNCS(gint64) COMPARE_FUNCS(gint64)
COMPARE_FUNCS(guint64) COMPARE_FUNCS(guint64)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
#define NUMERIC_SORT_KEYS(TYPE, key_type, type, default_value) \ #define NUMERIC_SORT_KEYS(TYPE, key_type, type, default_value) \
static void \ static void \
gtk_ ## type ## _sort_keys_init_key (GtkSortKeys *keys, \ 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(INT64, gint64, int64, G_MININT64)
NUMERIC_SORT_KEYS(UINT64, guint64, uint64, G_MAXUINT64) NUMERIC_SORT_KEYS(UINT64, guint64, uint64, G_MAXUINT64)
G_GNUC_END_IGNORE_DEPRECATIONS
static GtkSortKeys * static GtkSortKeys *
gtk_numeric_sort_keys_new (GtkNumericSorter *self) gtk_numeric_sort_keys_new (GtkNumericSorter *self)
{ {
@ -329,6 +333,8 @@ gtk_numeric_sort_keys_new (GtkNumericSorter *self)
return (GtkSortKeys *) result; return (GtkSortKeys *) result;
} }
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
static GtkOrdering static GtkOrdering
gtk_numeric_sorter_compare (GtkSorter *sorter, gtk_numeric_sorter_compare (GtkSorter *sorter,
gpointer item1, gpointer item1,
@ -450,6 +456,8 @@ out:
return result; return result;
} }
G_GNUC_END_IGNORE_DEPRECATIONS
static GtkSorterOrder static GtkSorterOrder
gtk_numeric_sorter_get_order (GtkSorter *sorter) gtk_numeric_sorter_get_order (GtkSorter *sorter)
{ {