Make sure children of the toolbar are given positive dimensions. (149540,

Wed Sep  1 19:11:44 2004  Søren Sandmann  <sandmann@redhat.com>

	* gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
	children of the toolbar are given positive dimensions. (149540,
	Felipe Heidrich).
This commit is contained in:
Søren Sandmann 2004-09-01 17:55:09 +00:00 committed by Søren Sandmann Pedersen
parent 951e6a1eb9
commit 0ac4f2837a
5 changed files with 26 additions and 2 deletions

View File

@ -1,3 +1,9 @@
Wed Sep 1 19:11:44 2004 Søren Sandmann <sandmann@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
children of the toolbar are given positive dimensions. (149540,
Felipe Heidrich).
2004-09-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemunix.c:

View File

@ -1,3 +1,9 @@
Wed Sep 1 19:11:44 2004 Søren Sandmann <sandmann@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
children of the toolbar are given positive dimensions. (149540,
Felipe Heidrich).
2004-09-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemunix.c:

View File

@ -1,3 +1,9 @@
Wed Sep 1 19:11:44 2004 Søren Sandmann <sandmann@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
children of the toolbar are given positive dimensions. (149540,
Felipe Heidrich).
2004-09-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemunix.c:

View File

@ -1,3 +1,9 @@
Wed Sep 1 19:11:44 2004 Søren Sandmann <sandmann@redhat.com>
* gtk/gtktoolbar.c (gtk_toolbar_size_allocate): Make sure
children of the toolbar are given positive dimensions. (149540,
Felipe Heidrich).
2004-09-01 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkfilesystemunix.c:

View File

@ -1491,7 +1491,7 @@ gtk_toolbar_size_allocate (GtkWidget *widget,
if (need_arrow)
{
arrow_allocation.width = arrow_size;
arrow_allocation.height = short_size;
arrow_allocation.height = MAX (short_size, 1);
}
/* expand expandable items */
@ -1669,7 +1669,7 @@ gtk_toolbar_size_allocate (GtkWidget *widget,
alloc = allocations[i];
}
if (alloc.width == 0 || alloc.height == 0)
if (alloc.width <= 0 || alloc.height <= 0)
{
toolbar_content_set_child_visible (content, toolbar, FALSE);
}