From 192f515682bc3595bc51ac70419f5789ae577613 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 9 Nov 2020 20:07:09 -0500 Subject: [PATCH 1/2] gtk-demo: Tweak a demo title --- demos/gtk-demo/iconscroll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/gtk-demo/iconscroll.c b/demos/gtk-demo/iconscroll.c index 43d74c49f7..9e2fe9dc8a 100644 --- a/demos/gtk-demo/iconscroll.c +++ b/demos/gtk-demo/iconscroll.c @@ -234,7 +234,7 @@ set_widget_type (int type) break; case 5: - gtk_window_set_title (GTK_WINDOW (window), "Scrolling a list"); + gtk_window_set_title (GTK_WINDOW (window), "Scrolling a columned list"); populate_list2 (); break; From 3e8260d5283402522cfe09a6ffc5fcf2e930561e Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 9 Nov 2020 21:04:52 -0500 Subject: [PATCH 2/2] gtk-demo: Plug a memory leak --- demos/gtk-demo/listview_ucd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/gtk-demo/listview_ucd.c b/demos/gtk-demo/listview_ucd.c index df120fcb08..35f0523812 100644 --- a/demos/gtk-demo/listview_ucd.c +++ b/demos/gtk-demo/listview_ucd.c @@ -80,7 +80,7 @@ ucd_model_new (void) iter = g_variant_iter_new (v); store = g_list_store_new (G_TYPE_OBJECT); - while (g_variant_iter_next (iter, "(us)", &u, &name)) + while (g_variant_iter_next (iter, "(u&s)", &u, &name)) { if (u == 0) continue;