Work better when there is not enough space. This avoids a nasty size

2005-02-04  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkpaned.c (gtk_paned_compute_position): Work better
        when there is not enough space. This avoids a nasty size
        allocation loop in the file chooser.  (#154007, reported
        by Milosz Derezynski, patch by Robert Ögren)
This commit is contained in:
Matthias Clasen
2005-02-04 17:45:05 +00:00
committed by Matthias Clasen
parent 3d67b0de18
commit dfcb773476
4 changed files with 22 additions and 0 deletions

View File

@@ -1,3 +1,10 @@
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpaned.c (gtk_paned_compute_position): Work better
when there is not enough space. This avoids a nasty size
allocation loop in the file chooser. (#154007, reported
by Milosz Derezynski, patch by Robert Ögren)
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious

View File

@@ -1,3 +1,10 @@
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpaned.c (gtk_paned_compute_position): Work better
when there is not enough space. This avoids a nasty size
allocation loop in the file chooser. (#154007, reported
by Milosz Derezynski, patch by Robert Ögren)
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious

View File

@@ -1,3 +1,10 @@
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkpaned.c (gtk_paned_compute_position): Work better
when there is not enough space. This avoids a nasty size
allocation loop in the file chooser. (#154007, reported
by Milosz Derezynski, patch by Robert Ögren)
2005-02-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkentry.c (gtk_entry_create_layout): Avoid spurious

View File

@@ -1172,6 +1172,7 @@ gtk_paned_compute_position (GtkPaned *paned,
paned->max_position = allocation;
if (!paned->child2_shrink)
paned->max_position = MAX (1, paned->max_position - child2_req);
paned->max_position = MAX (paned->min_position, paned->max_position);
if (!paned->position_set)
{