diff options
Diffstat (limited to 'tests/testcolumnview.c')
-rw-r--r-- | tests/testcolumnview.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/testcolumnview.c b/tests/testcolumnview.c index e60eab6746..58638b9adf 100644 --- a/tests/testcolumnview.c +++ b/tests/testcolumnview.c @@ -771,8 +771,8 @@ main (int argc, char *argv[]) g_object_unref (filter); list = gtk_list_view_new_with_factory ( + g_object_ref (gtk_column_view_get_columns (GTK_COLUMN_VIEW (view))), gtk_builder_list_item_factory_new_from_bytes (scope, g_bytes_new_static (factory_ui, strlen (factory_ui)))); - gtk_list_view_set_model (GTK_LIST_VIEW (list), gtk_column_view_get_columns (GTK_COLUMN_VIEW (view))); gtk_box_append (GTK_BOX (hbox), list); g_object_unref (scope); @@ -783,6 +783,5 @@ main (int argc, char *argv[]) while (g_list_model_get_n_items (toplevels)) g_main_context_iteration (NULL, TRUE); - return 0; } |