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.
This commit is contained in:
Kristian Rietveld 2006-07-18 10:15:37 +00:00 committed by Kristian Rietveld
parent ec9e9aff34
commit 6ca1b1e685
3 changed files with 17 additions and 2 deletions

View File

@ -1,3 +1,10 @@
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.
2006-07-17 Richard Hult <richard@imendio.com>
* gtk/gtkdnd-quartz.c: (gtk_drag_begin_internal): Set an empty

View File

@ -1,3 +1,10 @@
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.
2006-07-17 Richard Hult <richard@imendio.com>
* gtk/gtkdnd-quartz.c: (gtk_drag_begin_internal): Set an empty

View File

@ -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)