mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Improve the handling of broken situations. (#427899, Francesco Montorsi)
2007-07-09 Matthias Clasen <mclasen@redhat.com> * gtk/gtkframe.c (gtk_frame_size_allocate): Improve the handling of broken situations. (#427899, Francesco Montorsi) svn path=/trunk/; revision=18422
This commit is contained in:
parent
73dc5465ea
commit
4689dc3fd3
@ -1,3 +1,8 @@
|
||||
2007-07-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkframe.c (gtk_frame_size_allocate): Improve the
|
||||
handling of broken situations. (#427899, Francesco Montorsi)
|
||||
|
||||
2007-07-09 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkviewport.c (gtk_viewport_size_request): Changed size
|
||||
|
@ -676,7 +676,7 @@ gtk_frame_size_allocate (GtkWidget *widget,
|
||||
|
||||
child_allocation.x = frame->child_allocation.x + LABEL_SIDE_PAD +
|
||||
(frame->child_allocation.width - child_requisition.width - 2 * LABEL_PAD - 2 * LABEL_SIDE_PAD) * xalign + LABEL_PAD;
|
||||
child_allocation.width = child_requisition.width;
|
||||
child_allocation.width = MIN (child_requisition.width, new_allocation.width - 2 * LABEL_PAD - 2 * LABEL_SIDE_PAD);
|
||||
|
||||
child_allocation.y = frame->child_allocation.y - MAX (child_requisition.height, widget->style->ythickness);
|
||||
child_allocation.height = child_requisition.height;
|
||||
|
Loading…
Reference in New Issue
Block a user