mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
singleselection: Make tests build without warnings
This commit is contained in:
parent
acaa257469
commit
aa552229c9
@ -298,6 +298,7 @@ test_create (void)
|
||||
g_object_unref (selection);
|
||||
}
|
||||
|
||||
#if GLIB_CHECK_VERSION (2, 58, 0) /* g_list_store_splice() is broken before 2.58 */
|
||||
static void
|
||||
test_changes (void)
|
||||
{
|
||||
@ -332,7 +333,9 @@ test_changes (void)
|
||||
g_object_unref (selection);
|
||||
g_object_unref (store);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if GLIB_CHECK_VERSION (2, 59, 0) /* g_list_store_get_item() has overflow issues before */
|
||||
static void
|
||||
test_selection (void)
|
||||
{
|
||||
@ -383,7 +386,9 @@ test_selection (void)
|
||||
g_object_unref (store);
|
||||
g_object_unref (selection);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if GLIB_CHECK_VERSION (2, 59, 0) /* g_list_store_get_item() has overflow issues before */
|
||||
static void
|
||||
test_autoselect (void)
|
||||
{
|
||||
@ -418,7 +423,9 @@ test_autoselect (void)
|
||||
g_object_unref (store);
|
||||
g_object_unref (selection);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if GLIB_CHECK_VERSION (2, 59, 0) /* g_list_store_get_item() has overflow issues before */
|
||||
static void
|
||||
test_can_unselect (void)
|
||||
{
|
||||
@ -449,7 +456,9 @@ test_can_unselect (void)
|
||||
g_object_unref (store);
|
||||
g_object_unref (selection);
|
||||
}
|
||||
#endif
|
||||
|
||||
#if GLIB_CHECK_VERSION (2, 59, 0) /* g_list_store_get_item() has overflow issues before */
|
||||
static int
|
||||
sort_inverse (gconstpointer a, gconstpointer b, gpointer data)
|
||||
{
|
||||
@ -484,6 +493,7 @@ test_persistence (void)
|
||||
g_object_unref (store);
|
||||
g_object_unref (selection);
|
||||
}
|
||||
#endif
|
||||
|
||||
static void
|
||||
check_query_range (GtkSelectionModel *selection)
|
||||
|
Loading…
Reference in New Issue
Block a user