[gnome-control-center] list-box-helper: Unset row header if unneeded
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] list-box-helper: Unset row header if unneeded
- Date: Wed, 28 Jan 2015 11:21:08 +0000 (UTC)
commit fe77d8020a3c13d72777256d6fa541453f897dbc
Author: Timm Bäder <mail baedert org>
Date: Sat Jan 24 16:23:26 2015 +0100
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 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/shell/list-box-helper.c b/shell/list-box-helper.c
index acd3a19..6e4ac89 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]