diff options
author | Benjamin Otte <otte@redhat.com> | 2012-10-27 02:07:43 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2012-10-31 11:09:11 +0100 |
commit | 12dec5279e4324cf089ca8c326bf9a39e19c178f (patch) | |
tree | ebab083a0201fe0e91aa7eaf82c9e3cf654b2faa | |
parent | e9dbfc0e064d561da57699a8b8caa15b68cf52b7 (diff) | |
download | gtk+-12dec5279e4324cf089ca8c326bf9a39e19c178f.tar.gz |
themingbackground: Add content_box variable
... to go with border_box and padding_box.
-rw-r--r-- | gtk/gtkthemingbackground.c | 5 | ||||
-rw-r--r-- | gtk/gtkthemingbackgroundprivate.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c index 55df2dc230..b80cc5b9a8 100644 --- a/gtk/gtkthemingbackground.c +++ b/gtk/gtkthemingbackground.c @@ -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 diff --git a/gtk/gtkthemingbackgroundprivate.h b/gtk/gtkthemingbackgroundprivate.h index e6ed1df76c..04ecd6afce 100644 --- a/gtk/gtkthemingbackgroundprivate.h +++ b/gtk/gtkthemingbackgroundprivate.h @@ -37,6 +37,7 @@ struct _GtkThemingBackground { cairo_rectangle_t paint_area; GtkRoundedBox border_box; GtkRoundedBox padding_box; + GtkRoundedBox content_box; GtkJunctionSides junction; GtkBorder border; |