[gtk+] GtkListBox: Open code the update_header calls in add()
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] GtkListBox: Open code the update_header calls in add()
- Date: Thu, 13 Jun 2013 10:18:54 +0000 (UTC)
commit 217c2bb087454a1482638e09ea91cb96f3e38ab9
Author: Alexander Larsson <alexl redhat com>
Date: Tue Jun 11 16:07:42 2013 +0200
GtkListBox: Open code the update_header calls in add()
Rather than reusing row_visibility_changed. This means
row_visibility_changed really means that the row visibility changed.
gtk/gtklistbox.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtklistbox.c b/gtk/gtklistbox.c
index 8292977..8bf9269 100644
--- a/gtk/gtklistbox.c
+++ b/gtk/gtklistbox.c
@@ -1536,7 +1536,12 @@ gtk_list_box_real_add (GtkContainer* container, GtkWidget *child)
row->priv->iter = iter;
gtk_widget_set_parent (GTK_WIDGET (row), GTK_WIDGET (list_box));
gtk_list_box_apply_filter (list_box, row);
- gtk_list_box_row_visibility_changed (list_box, row);
+ if (gtk_widget_get_visible (GTK_WIDGET (list_box)))
+ {
+ gtk_list_box_update_header (list_box, row->priv->iter);
+ gtk_list_box_update_header (list_box,
+ gtk_list_box_get_next_visible (list_box, row->priv->iter));
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]