[gtk+] themingbackground: Add content_box variable
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] themingbackground: Add content_box variable
- Date: Wed, 31 Oct 2012 10:58:12 +0000 (UTC)
commit 12dec5279e4324cf089ca8c326bf9a39e19c178f
Author: Benjamin Otte <otte redhat com>
Date: Sat Oct 27 02:07:43 2012 +0200
themingbackground: Add content_box variable
... to go with border_box and padding_box.
gtk/gtkthemingbackground.c | 5 +++++
gtk/gtkthemingbackgroundprivate.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingbackground.c b/gtk/gtkthemingbackground.c
index 55df2dc..b80cc5b 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 e6ed1df..04ecd6a 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]