summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorKristian Rietveld <kris@imendio.com>2006-07-18 10:15:37 +0000
committerKristian Rietveld <kristian@src.gnome.org>2006-07-18 10:15:37 +0000
commit6ca1b1e68570c903330d47f869d623db3d2eca21 (patch)
treee7a4138372fefe99fc00c703ed50401b8c58515e /gtk
parentec9e9aff34511aeafd60bfd607a667ef3df0f062 (diff)
downloadgtk+-6ca1b1e68570c903330d47f869d623db3d2eca21.tar.gz
use MAX priv->width, alloc.width when allocating the bin_window,
2006-07-18 Kristian Rietveld <kris@imendio.com> * gtk/gtktreeview.c (gtk_tree_view_realize): use MAX priv->width, alloc.width when allocating the bin_window, (gtk_tree_view_bin_expose): don't overrun bin_window when drawing the flat box.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtktreeview.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c
index 17fda0b489..ff278f487f 100644
--- a/gtk/gtktreeview.c
+++ b/gtk/gtktreeview.c
@@ -1728,7 +1728,7 @@ gtk_tree_view_realize (GtkWidget *widget)
/* Make the window for the tree */
attributes.x = 0;
attributes.y = TREE_VIEW_HEADER_HEIGHT (tree_view);
- attributes.width = tree_view->priv->width;
+ attributes.width = MAX (tree_view->priv->width, widget->allocation.width);
attributes.height = widget->allocation.height;
attributes.event_mask = GDK_EXPOSURE_MASK |
GDK_SCROLL_MASK |
@@ -4121,7 +4121,8 @@ gtk_tree_view_bin_expose (GtkWidget *widget,
widget,
"cell_even",
0, tree_view->priv->height,
- bin_window_width, bin_window_height);
+ bin_window_width,
+ bin_window_height - tree_view->priv->height);
}
if (node == NULL)