[gtk+/box-shadow: 5/5] themingengine: render the box shadow
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/box-shadow: 5/5] themingengine: render the box shadow
- Date: Mon, 6 Jun 2011 18:16:04 +0000 (UTC)
commit bdfe8fc62b6cdb021316bd29bbd49c323a597edc
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Jun 1 21:01:01 2011 -0400
themingengine: render the box shadow
gtk/gtkthemingengine.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkthemingengine.c b/gtk/gtkthemingengine.c
index 026b941..bc54892 100644
--- a/gtk/gtkthemingengine.c
+++ b/gtk/gtkthemingengine.c
@@ -1902,6 +1902,7 @@ render_frame_internal (GtkThemingEngine *engine,
gboolean running;
GtkBorder border;
gboolean uniform_border;
+ GtkShadow *box_shadow;
state = gtk_theming_engine_get_state (engine);
@@ -1910,6 +1911,7 @@ render_frame_internal (GtkThemingEngine *engine,
gtk_theming_engine_get (engine, state,
"border-style", &border_style,
+ "box-shadow", &box_shadow,
/* Can't use border-radius as it's an int for
* backwards compat */
"border-top-left-radius", &top_left_radius,
@@ -2128,6 +2130,14 @@ render_frame_internal (GtkThemingEngine *engine,
}
cairo_restore (cr);
+
+ if (box_shadow != NULL)
+ {
+ _gtk_box_shadow_render (box_shadow, cr,
+ x, y, width, height,
+ &border, &border_radius);
+ _gtk_shadow_unref (box_shadow);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]