Fixing GtkCellAreaBox to rebuild groups when align/expand child properties change.
This commit is contained in:
@ -1098,7 +1098,6 @@ gtk_cell_area_box_set_cell_property (GtkCellArea *area,
|
|||||||
GList *node;
|
GList *node;
|
||||||
CellInfo *info;
|
CellInfo *info;
|
||||||
gboolean rebuild = FALSE;
|
gboolean rebuild = FALSE;
|
||||||
gboolean flush = FALSE;
|
|
||||||
gboolean val;
|
gboolean val;
|
||||||
GtkPackType pack_type;
|
GtkPackType pack_type;
|
||||||
|
|
||||||
@ -1117,7 +1116,7 @@ gtk_cell_area_box_set_cell_property (GtkCellArea *area,
|
|||||||
if (info->expand != val)
|
if (info->expand != val)
|
||||||
{
|
{
|
||||||
info->expand = val;
|
info->expand = val;
|
||||||
flush = TRUE;
|
rebuild = TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1127,7 +1126,7 @@ gtk_cell_area_box_set_cell_property (GtkCellArea *area,
|
|||||||
if (info->align != val)
|
if (info->align != val)
|
||||||
{
|
{
|
||||||
info->align = val;
|
info->align = val;
|
||||||
flush = TRUE;
|
rebuild = TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1147,14 +1146,8 @@ gtk_cell_area_box_set_cell_property (GtkCellArea *area,
|
|||||||
|
|
||||||
/* Groups need to be rebuilt */
|
/* Groups need to be rebuilt */
|
||||||
if (rebuild)
|
if (rebuild)
|
||||||
{
|
|
||||||
cell_groups_rebuild (box);
|
cell_groups_rebuild (box);
|
||||||
}
|
}
|
||||||
else if (flush)
|
|
||||||
{
|
|
||||||
flush_iters (box);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
gtk_cell_area_box_get_cell_property (GtkCellArea *area,
|
gtk_cell_area_box_get_cell_property (GtkCellArea *area,
|
||||||
|
|||||||
Reference in New Issue
Block a user