diff options
author | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2010-11-24 18:27:51 +0900 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2011-01-04 23:37:08 +0900 |
commit | 39cf1576d77076c96539ff019728257b72e404b4 (patch) | |
tree | aa697dd8574c6dc1dabd6a19666f20733acc50b9 /gtk/gtkcellview.c | |
parent | 83c69f4cf381ce8218a861b4349bc2f207397aa2 (diff) | |
download | gtk+-39cf1576d77076c96539ff019728257b72e404b4.tar.gz |
Fixed GtkCellView to always allocate when in fit-model mode.
Diffstat (limited to 'gtk/gtkcellview.c')
-rw-r--r-- | gtk/gtkcellview.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gtk/gtkcellview.c b/gtk/gtkcellview.c index 7cb39e9965..3c31d9aa63 100644 --- a/gtk/gtkcellview.c +++ b/gtk/gtkcellview.c @@ -516,8 +516,12 @@ gtk_cell_view_size_allocate (GtkWidget *widget, gtk_cell_area_context_get_allocation (priv->context, &alloc_width, &alloc_height); /* The first cell view in context is responsible for allocating the context at allocate time - * (or the cellview has its own context and is not grouped with any other cell views) */ - if (alloc_width <= 0 && alloc_height <= 0) + * (or the cellview has its own context and is not grouped with any other cell views) + * + * If the cellview is in "fit model" mode, we assume its not in context and needs to + * allocate every time. + */ + if ((alloc_width <= 0 && alloc_height <= 0) || priv->fit_model) { gtk_cell_area_context_allocate_width (priv->context, allocation->width); gtk_cell_area_context_allocate_height (priv->context, allocation->height); |