summaryrefslogtreecommitdiff
path: root/testsuite/gtk/objects-finalize.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-10-07 06:36:25 +0200
committerBenjamin Otte <otte@redhat.com>2019-10-15 07:17:07 +0200
commit9f5ee77a44ad08f96d0ffb82ab94bce14e531fad (patch)
tree126208c0af5dc05520f692c056b7bcfbf5aa7f31 /testsuite/gtk/objects-finalize.c
parent6d20fe0bf9f00e01a5545a26fde3637edd262edc (diff)
downloadgtk+-9f5ee77a44ad08f96d0ffb82ab94bce14e531fad.tar.gz
singleselection: Fix model property
1. Make the model property construct-only. Allowing to change the model has invalid side effects. 2. Add a getter for the model property.
Diffstat (limited to 'testsuite/gtk/objects-finalize.c')
-rw-r--r--testsuite/gtk/objects-finalize.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/testsuite/gtk/objects-finalize.c b/testsuite/gtk/objects-finalize.c
index bb7e51371d..722067c118 100644
--- a/testsuite/gtk/objects-finalize.c
+++ b/testsuite/gtk/objects-finalize.c
@@ -64,7 +64,8 @@ test_finalize_object (gconstpointer data)
NULL);
gdk_content_formats_unref (formats);
}
- else if (g_type_is_a (test_type, GTK_TYPE_FILTER_LIST_MODEL))
+ else if (g_type_is_a (test_type, GTK_TYPE_FILTER_LIST_MODEL) ||
+ g_type_is_a (test_type, GTK_TYPE_SINGLE_SELECTION))
{
GListStore *list_store = g_list_store_new (G_TYPE_OBJECT);
object = g_object_new (test_type,