diff options
author | Kristian Rietveld <kris@gtk.org> | 2011-04-05 21:13:43 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-04-17 01:14:51 +0200 |
commit | 874dfc24b2825be505bffbfc0bd7564ab654f254 (patch) | |
tree | 0aae3637dfd1d1d1fbd326871ba325431269fab1 /gtk/gtktreeviewcolumn.c | |
parent | 4d5d915afe89429dd78b81c3806be027fc61eab1 (diff) | |
download | gtk+-874dfc24b2825be505bffbfc0bd7564ab654f254.tar.gz |
treeview: Do not unconditionally set width_changed to TRUE, which redraws
Patches by Benjamin Otte.
The "invalidate last column" hack is removed. It is now of no use since
the entire widget will be redrawn when a single column changes.
Diffstat (limited to 'gtk/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 892db02945..cb04b1b280 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -2110,6 +2110,9 @@ _gtk_tree_view_column_allocate (GtkTreeViewColumn *tree_column, priv = tree_column->priv; + if (priv->width != width) + gtk_widget_queue_draw (priv->tree_view); + priv->width = width; gtk_cell_area_context_allocate (priv->cell_area_context, priv->width - priv->padding, -1); |