[gtk-theme-engine-clearlooks] gnome3: delegate background rendering to the default engine for buttons.
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-theme-engine-clearlooks] gnome3: delegate background rendering to the default engine for buttons.
- Date: Mon, 6 Dec 2010 21:22:48 +0000 (UTC)
commit 343e4d226ed62b3509038fdd2ee3ec1ede168dd2
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Nov 30 03:04:27 2010 +0100
gnome3: delegate background rendering to the default engine for buttons.
src/clearlooks_draw_gnome3.c | 18 ------------------
1 files changed, 0 insertions(+), 18 deletions(-)
---
diff --git a/src/clearlooks_draw_gnome3.c b/src/clearlooks_draw_gnome3.c
index 233b78f..a46fb58 100644
--- a/src/clearlooks_draw_gnome3.c
+++ b/src/clearlooks_draw_gnome3.c
@@ -225,24 +225,6 @@ clearlooks_gnome3_draw_button (cairo_t *cr,
cairo_pattern_destroy (pattern);
cairo_stroke (cr);
- ge_cairo_rounded_rectangle (cr, x + 2, y + 2, width - 4, height - 4, MAX(0, radius - 2),
- clearlooks_get_corners (engine));
-#if 0
- if (colors->gradient &&
- (state & GTK_STATE_FLAG_PRELIGHT)) {
- draw_gradient (cr, colors->gradient, x, y, width, height);
- }
- else {
-#endif
- {
- pattern = cairo_pattern_create_linear (x, y + 3, x, y + height - 6);
- ge_cairo_pattern_add_color_stop_color (pattern, 0.0, &fill_top_color);
- ge_cairo_pattern_add_color_stop_color (pattern, 1.0, &fill_bottom_color);
- cairo_set_source (cr, pattern);
- cairo_pattern_destroy (pattern);
- cairo_fill (cr);
- }
-
cairo_restore (cr);
gdk_rgba_free ((GdkRGBA *) bg_color);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]