summaryrefslogtreecommitdiff
path: root/testsuite/gtk
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-10-07 06:28:28 +0200
committerBenjamin Otte <otte@redhat.com>2019-10-15 07:17:07 +0200
commit1b68e768529ace3bfeb29c51b4c34d2639ae8a85 (patch)
tree54c38d45f2824c5370b67423fe6efcf8ba8c5a0b /testsuite/gtk
parent9f5ee77a44ad08f96d0ffb82ab94bce14e531fad (diff)
downloadgtk+-1b68e768529ace3bfeb29c51b4c34d2639ae8a85.tar.gz
gtk: Add GtkNoSelection
Allows not to have anything selected.
Diffstat (limited to 'testsuite/gtk')
-rw-r--r--testsuite/gtk/defaultvalue.c2
-rw-r--r--testsuite/gtk/notify.c1
-rw-r--r--testsuite/gtk/objects-finalize.c1
3 files changed, 4 insertions, 0 deletions
diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c
index 556adb9693..4c79386cac 100644
--- a/testsuite/gtk/defaultvalue.c
+++ b/testsuite/gtk/defaultvalue.c
@@ -110,6 +110,7 @@ test_type (gconstpointer data)
&(GdkRectangle) { 0, 0, 100, 100 })));
}
else if (g_type_is_a (type, GTK_TYPE_FILTER_LIST_MODEL) ||
+ g_type_is_a (type, GTK_TYPE_NO_SELECTION) ||
g_type_is_a (type, GTK_TYPE_SINGLE_SELECTION))
{
GListStore *list_store = g_list_store_new (G_TYPE_OBJECT);
@@ -257,6 +258,7 @@ G_GNUC_BEGIN_IGNORE_DEPRECATIONS
G_GNUC_END_IGNORE_DEPRECATIONS
if ((g_type_is_a (type, GTK_TYPE_FILTER_LIST_MODEL) ||
+ g_type_is_a (type, GTK_TYPE_NO_SELECTION) ||
g_type_is_a (type, GTK_TYPE_SINGLE_SELECTION)) &&
strcmp (pspec->name, "model") == 0)
continue;
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index 83a04b0776..4a845ed447 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -432,6 +432,7 @@ test_type (gconstpointer data)
gdk_content_formats_unref (formats);
}
else if (g_type_is_a (type, GTK_TYPE_FILTER_LIST_MODEL) ||
+ g_type_is_a (type, GTK_TYPE_NO_SELECTION) ||
g_type_is_a (type, GTK_TYPE_SINGLE_SELECTION))
{
GListStore *list_store = g_list_store_new (G_TYPE_OBJECT);
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c
index 722067c118..5ee575bf3b 100644
--- a/testsuite/gtk/objects-finalize.c
+++ b/testsuite/gtk/objects-finalize.c
@@ -65,6 +65,7 @@ test_finalize_object (gconstpointer data)
gdk_content_formats_unref (formats);
}
else if (g_type_is_a (test_type, GTK_TYPE_FILTER_LIST_MODEL) ||
+ g_type_is_a (test_type, GTK_TYPE_NO_SELECTION) ||
g_type_is_a (test_type, GTK_TYPE_SINGLE_SELECTION))
{
GListStore *list_store = g_list_store_new (G_TYPE_OBJECT);