Add missing accessors for notebook details

The ms-windows theme engine needs to access the tab-{h,v}border,
so add accessors. Bug 625655.
This commit is contained in:
Sam Thursfield
2010-08-09 21:20:07 -04:00
committed by Matthias Clasen
parent 4047d0526d
commit a2b72c5953
5 changed files with 55 additions and 10 deletions

View File

@ -2817,29 +2817,29 @@ draw_box_gap (GtkStyle *style, GdkWindow *window, GtkStateType state_type,
if (side == GTK_POS_TOP)
{
x2 = x;
y2 = y - notebook->tab_vborder;
y2 = y - gtk_notebook_get_tab_vborder (notebook);
w2 = width;
h2 = height + notebook->tab_vborder * 2;
h2 = height + gtk_notebook_get_tab_vborder (notebook) * 2;
}
else if (side == GTK_POS_BOTTOM)
{
x2 = x;
y2 = y;
w2 = width;
h2 = height + notebook->tab_vborder * 2;
h2 = height + gtk_notebook_get_tab_vborder (notebook) * 2;
}
else if (side == GTK_POS_LEFT)
{
x2 = x - notebook->tab_hborder;
x2 = x - gtk_notebook_get_tab_hborder (notebook);
y2 = y;
w2 = width + notebook->tab_hborder;
w2 = width + gtk_notebook_get_tab_hborder (notebook);
h2 = height;
}
else if (side == GTK_POS_RIGHT)
{
x2 = x;
y2 = y;
w2 = width + notebook->tab_hborder * 2;
w2 = width + gtk_notebook_get_tab_hborder (notebook) * 2;
h2 = height;
}