[gnome-themes-standard] engine: simplify code
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-themes-standard] engine: simplify code
- Date: Fri, 3 Feb 2012 20:55:28 +0000 (UTC)
commit af43b250f235c2df6ecbe9ca6ceecf86e61af325
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Fri Feb 3 15:54:29 2012 -0500
engine: simplify code
We don't need to render a background ourselves here, since GTTK already
does it for us. We just need to make sure we set background-color to
transparent (we already do that) so that GTK won't override the asset.
src/adwaita_engine.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/adwaita_engine.c b/src/adwaita_engine.c
index b75453a..34029bc 100644
--- a/src/adwaita_engine.c
+++ b/src/adwaita_engine.c
@@ -613,14 +613,7 @@ adwaita_engine_render_handle (GtkThemingEngine *engine,
gdouble width,
gdouble height)
{
- if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_GRIP))
- {
- GTK_THEMING_ENGINE_CLASS (adwaita_engine_parent_class)->render_background
- (engine, cr, x, y, width, height);
- GTK_THEMING_ENGINE_CLASS (adwaita_engine_parent_class)->render_frame
- (engine, cr, x, y, width, height);
- }
- else if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_PANE_SEPARATOR))
+ if (gtk_theming_engine_has_class (engine, GTK_STYLE_CLASS_PANE_SEPARATOR))
{
GdkRGBA fg;
GtkStateFlags state;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]