forked from AuroraMiddleware/gtk
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:
parent
951e6a1eb9
commit
0ac4f2837a
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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:
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user