themingbackground: Add content_box variable

... to go with border_box and padding_box.
This commit is contained in:
Benjamin Otte 2012-10-27 02:07:43 +02:00
parent e9dbfc0e06
commit 12dec5279e
2 changed files with 6 additions and 0 deletions

View File

@ -357,6 +357,11 @@ _gtk_theming_background_init_context (GtkThemingBackground *bg)
_gtk_rounded_box_shrink (&bg->padding_box,
bg->border.top, bg->border.right,
bg->border.bottom, bg->border.left);
bg->content_box = bg->padding_box;
_gtk_rounded_box_shrink (&bg->content_box,
bg->padding.top, bg->padding.right,
bg->padding.bottom, bg->padding.left);
}
void

View File

@ -37,6 +37,7 @@ struct _GtkThemingBackground {
cairo_rectangle_t paint_area;
GtkRoundedBox border_box;
GtkRoundedBox padding_box;
GtkRoundedBox content_box;
GtkJunctionSides junction;
GtkBorder border;