[gtk+/treeview-refactor] Fixing GtkCellAreaBox to rebuild groups when align/expand child properties change.
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/treeview-refactor] Fixing GtkCellAreaBox to rebuild groups when align/expand child properties change.
- Date: Tue, 9 Nov 2010 07:12:03 +0000 (UTC)
commit c932beef4bce3d5b45d260a0d4677ae225f3075c
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Tue Nov 9 13:50:30 2010 +0900
Fixing GtkCellAreaBox to rebuild groups when align/expand child properties change.
gtk/gtkcellareabox.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkcellareabox.c b/gtk/gtkcellareabox.c
index 21f84b1..887b6b3 100644
--- a/gtk/gtkcellareabox.c
+++ b/gtk/gtkcellareabox.c
@@ -1098,7 +1098,6 @@ gtk_cell_area_box_set_cell_property (GtkCellArea *area,
GList *node;
CellInfo *info;
gboolean rebuild = FALSE;
- gboolean flush = FALSE;
gboolean val;
GtkPackType pack_type;
@@ -1117,7 +1116,7 @@ gtk_cell_area_box_set_cell_property (GtkCellArea *area,
if (info->expand != val)
{
info->expand = val;
- flush = TRUE;
+ rebuild = TRUE;
}
break;
@@ -1127,7 +1126,7 @@ gtk_cell_area_box_set_cell_property (GtkCellArea *area,
if (info->align != val)
{
info->align = val;
- flush = TRUE;
+ rebuild = TRUE;
}
break;
@@ -1147,13 +1146,7 @@ gtk_cell_area_box_set_cell_property (GtkCellArea *area,
/* Groups need to be rebuilt */
if (rebuild)
- {
- cell_groups_rebuild (box);
- }
- else if (flush)
- {
- flush_iters (box);
- }
+ cell_groups_rebuild (box);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]