From fe77d8020a3c13d72777256d6fa541453f897dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 24 Jan 2015 16:23:26 +0100 Subject: [PATCH] list-box-helper: Unset row header if unneeded The usual implementation of the header func adds headers to all rows but the first one. If the first row then gets removed, the second row becomes the first and keeps its header, since nothing ever removes it. Fix this by also removing the header if we are looking at the first row. https://bugzilla.gnome.org/show_bug.cgi?id=743441 --- shell/list-box-helper.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell/list-box-helper.c b/shell/list-box-helper.c index acd3a1918..6e4ac89eb 100644 --- a/shell/list-box-helper.c +++ b/shell/list-box-helper.c @@ -28,7 +28,10 @@ cc_list_box_update_header_func (GtkListBoxRow *row, GtkWidget *current; if (before == NULL) - return; + { + gtk_list_box_row_set_header (row, NULL); + return; + } current = gtk_list_box_row_get_header (row); if (current == NULL)