From f4a7c7f6bfcb844d00e56cc1dce16f691ffb17bc Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 16 Jul 2020 16:24:49 -0400 Subject: [PATCH] gtk-demo: Use better api We have a getter for the model, lets use it. --- demos/gtk-demo/listview_colors.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demos/gtk-demo/listview_colors.c b/demos/gtk-demo/listview_colors.c index 449c14b3c6..af20292f4a 100644 --- a/demos/gtk-demo/listview_colors.c +++ b/demos/gtk-demo/listview_colors.c @@ -950,7 +950,8 @@ do_listview_colors (GtkWidget *do_widget) g_object_unref (selection_filter); g_object_unref (no_selection); - g_object_get (model, "model", &model, NULL); + model = gtk_multi_selection_get_model (GTK_MULTI_SELECTION (model)); + g_object_ref (model); selection_info_toggle = gtk_toggle_button_new (); gtk_button_set_icon_name (GTK_BUTTON (selection_info_toggle), "emblem-important-symbolic");