notebook: Respect padding when computing tabs for left/right

This mirrors the top/bottom code
This commit is contained in:
Benjamin Otte 2011-04-29 09:38:23 +02:00
parent 9a4aec1446
commit 409143637f

View File

@ -6177,11 +6177,16 @@ gtk_notebook_page_allocate (GtkNotebook *notebook,
*/
if (page != priv->cur_page && tab_overlap > tab_curvature)
{
child_allocation.height -= tab_overlap - tab_curvature;
if (gtk_notebook_page_num (notebook, page->child) >
gtk_notebook_page_num (notebook, priv->cur_page->child))
child_allocation.y += tab_overlap - tab_curvature;
{
child_allocation.y += tab_overlap - tab_curvature - tab_padding.top;
child_allocation.height -= tab_overlap - tab_curvature - tab_padding.top;
}
else
{
child_allocation.height -= tab_overlap - tab_curvature - tab_padding.bottom;
}
}
}
else