mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 10:50:10 +00:00
themingbackground: Add content_box variable
... to go with border_box and padding_box.
This commit is contained in:
parent
e9dbfc0e06
commit
12dec5279e
@ -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
|
||||
|
@ -37,6 +37,7 @@ struct _GtkThemingBackground {
|
||||
cairo_rectangle_t paint_area;
|
||||
GtkRoundedBox border_box;
|
||||
GtkRoundedBox padding_box;
|
||||
GtkRoundedBox content_box;
|
||||
|
||||
GtkJunctionSides junction;
|
||||
GtkBorder border;
|
||||
|
Loading…
Reference in New Issue
Block a user