Use >= not > in deciding whether to subtract out x/ythickness. (#308145,
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)
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
2005-07-26 Elijah Newren <newren@gmail.com>
|
2005-07-26 Elijah Newren <newren@gmail.com>
|
||||||
|
|
||||||
Revert part of patch from #166379; don't have gtk_window_present()
|
Revert part of patch from #166379; don't have gtk_window_present()
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
2005-07-26 Elijah Newren <newren@gmail.com>
|
2005-07-26 Elijah Newren <newren@gmail.com>
|
||||||
|
|
||||||
Revert part of patch from #166379; don't have gtk_window_present()
|
Revert part of patch from #166379; don't have gtk_window_present()
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
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)
|
||||||
|
|
||||||
2005-07-26 Elijah Newren <newren@gmail.com>
|
2005-07-26 Elijah Newren <newren@gmail.com>
|
||||||
|
|
||||||
Revert part of patch from #166379; don't have gtk_window_present()
|
Revert part of patch from #166379; don't have gtk_window_present()
|
||||||
|
|||||||
@ -3611,13 +3611,13 @@ gtk_notebook_page_allocate (GtkNotebook *notebook,
|
|||||||
case GTK_POS_TOP:
|
case GTK_POS_TOP:
|
||||||
page->allocation.y += ythickness;
|
page->allocation.y += ythickness;
|
||||||
case GTK_POS_BOTTOM:
|
case GTK_POS_BOTTOM:
|
||||||
if (page->allocation.height > ythickness)
|
if (page->allocation.height >= ythickness)
|
||||||
page->allocation.height -= ythickness;
|
page->allocation.height -= ythickness;
|
||||||
break;
|
break;
|
||||||
case GTK_POS_LEFT:
|
case GTK_POS_LEFT:
|
||||||
page->allocation.x += xthickness;
|
page->allocation.x += xthickness;
|
||||||
case GTK_POS_RIGHT:
|
case GTK_POS_RIGHT:
|
||||||
if (page->allocation.width > xthickness)
|
if (page->allocation.width >= xthickness)
|
||||||
page->allocation.width -= xthickness;
|
page->allocation.width -= xthickness;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user