[gtk-theme-engine-clearlooks] Only use gradients for prelighting in buttons
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-theme-engine-clearlooks] Only use gradients for prelighting in buttons
- Date: Sun, 7 Nov 2010 19:15:11 +0000 (UTC)
commit ed2cd5c5728e7da3c82d0c7f8ccc8f0c0b0e8c7d
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Nov 7 14:14:33 2010 -0500
Only use gradients for prelighting in buttons
src/clearlooks_draw_gnome3.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/clearlooks_draw_gnome3.c b/src/clearlooks_draw_gnome3.c
index ebba245..8e62c4a 100644
--- a/src/clearlooks_draw_gnome3.c
+++ b/src/clearlooks_draw_gnome3.c
@@ -177,7 +177,7 @@ clearlooks_gnome3_draw_button (cairo_t *cr,
cairo_stroke (cr);
ge_cairo_rounded_rectangle (cr, x + 2, y + 2, width - 4, height - 4, MAX(0, params->radius - 2), params->corners);
- if (colors->gradient) {
+ if (colors->gradient && params->state_type == GTK_STATE_PRELIGHT) {
draw_gradient (cr, colors->gradient, x, y, width, height);
}
else {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]