]> Pileus Git - ~andy/gtk/commitdiff
Fix to be monotonic in the original size (#308145, Morten Welinder)
authorOwen Taylor <otaylor@redhat.com>
Wed, 27 Jul 2005 00:00:05 +0000 (00:00 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Wed, 27 Jul 2005 00:00:05 +0000 (00:00 +0000)
2005-07-26  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtknotebook.c (gtk_notebook_page_allocate): Fix to be
        monotonic in the original size (#308145, Morten Welinder)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-8
gtk/gtknotebook.c

index 08ff8fb49417447da5755b9656b4d673cc5b2ccd..8a015cec4c35ee75a8b20c3720dfc621658a3bf7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,8 +1,7 @@
 2005-07-26  Owen Taylor  <otaylor@redhat.com>
 
-       * gtk/gtknotebook.c (gtk_notebook_page_allocate): Use
-       >= not > in deciding whether to subtract out x/ythickness.
-       (#308145, Morten Welinder)
+       * gtk/gtknotebook.c (gtk_notebook_page_allocate): Fix to be
+       monotonic in the original size (#308145, Morten Welinder)
 
 2005-07-26  Elijah Newren  <newren@gmail.com>
 
index 08ff8fb49417447da5755b9656b4d673cc5b2ccd..8a015cec4c35ee75a8b20c3720dfc621658a3bf7 100644 (file)
@@ -1,8 +1,7 @@
 2005-07-26  Owen Taylor  <otaylor@redhat.com>
 
-       * gtk/gtknotebook.c (gtk_notebook_page_allocate): Use
-       >= not > in deciding whether to subtract out x/ythickness.
-       (#308145, Morten Welinder)
+       * gtk/gtknotebook.c (gtk_notebook_page_allocate): Fix to be
+       monotonic in the original size (#308145, Morten Welinder)
 
 2005-07-26  Elijah Newren  <newren@gmail.com>
 
index 08ff8fb49417447da5755b9656b4d673cc5b2ccd..8a015cec4c35ee75a8b20c3720dfc621658a3bf7 100644 (file)
@@ -1,8 +1,7 @@
 2005-07-26  Owen Taylor  <otaylor@redhat.com>
 
-       * gtk/gtknotebook.c (gtk_notebook_page_allocate): Use
-       >= not > in deciding whether to subtract out x/ythickness.
-       (#308145, Morten Welinder)
+       * gtk/gtknotebook.c (gtk_notebook_page_allocate): Fix to be
+       monotonic in the original size (#308145, Morten Welinder)
 
 2005-07-26  Elijah Newren  <newren@gmail.com>
 
index eb18477885bd02546a51f24106de1ccdcdac1085..881d310f5785ba080be217b4c2c44e32598bf995 100644 (file)
@@ -3611,14 +3611,12 @@ gtk_notebook_page_allocate (GtkNotebook     *notebook,
        case GTK_POS_TOP:
          page->allocation.y += ythickness;
        case GTK_POS_BOTTOM:
-         if (page->allocation.height >= ythickness)
-           page->allocation.height -= ythickness;
+         page->allocation.height = MAX (1, page->allocation.height - ythickness);
          break;
        case GTK_POS_LEFT:
          page->allocation.x += xthickness;
        case GTK_POS_RIGHT:
-         if (page->allocation.width >= xthickness)
-           page->allocation.width -= xthickness;
+         page->allocation.width = MAX (1, page->allocation.width - xthickness);
          break;
        }
     }