forked from AuroraMiddleware/gtk
Fix to be monotonic in the original size (#308145, Morten Welinder)
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)
This commit is contained in:
parent
dbadd50ad7
commit
cd2ff9ab02
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user