notebook: Use the right padding for inactive tabs
This commit is contained in:
@ -5910,16 +5910,18 @@ gtk_notebook_calculate_tabs_allocation (GtkNotebook *notebook,
|
|||||||
{
|
{
|
||||||
case GTK_POS_TOP:
|
case GTK_POS_TOP:
|
||||||
page->allocation.y += padding.top;
|
page->allocation.y += padding.top;
|
||||||
/* fall through */
|
|
||||||
case GTK_POS_BOTTOM:
|
|
||||||
page->allocation.height = MAX (1, page->allocation.height - padding.top);
|
page->allocation.height = MAX (1, page->allocation.height - padding.top);
|
||||||
break;
|
break;
|
||||||
|
case GTK_POS_BOTTOM:
|
||||||
|
page->allocation.height = MAX (1, page->allocation.height - padding.bottom);
|
||||||
|
break;
|
||||||
case GTK_POS_LEFT:
|
case GTK_POS_LEFT:
|
||||||
page->allocation.x += padding.left;
|
page->allocation.x += padding.left;
|
||||||
/* fall through */
|
|
||||||
case GTK_POS_RIGHT:
|
|
||||||
page->allocation.width = MAX (1, page->allocation.width - padding.left);
|
page->allocation.width = MAX (1, page->allocation.width - padding.left);
|
||||||
break;
|
break;
|
||||||
|
case GTK_POS_RIGHT:
|
||||||
|
page->allocation.width = MAX (1, page->allocation.width - padding.right);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user