[gtk-theme-engine-clearlooks] draw: don't swap normal<->active states when drawing buttons
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk-theme-engine-clearlooks] draw: don't swap normal<->active states when drawing buttons
- Date: Thu, 13 Jan 2011 00:22:12 +0000 (UTC)
commit 349278c5a22201e73eadce08a96d211f0bfaf0bd
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu Jan 13 01:20:39 2011 +0100
draw: don't swap normal<->active states when drawing buttons
This is a regression from commit
8d881a1ebd4858f7fd586aa879c16fa2689e023b
src/clearlooks_draw.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/clearlooks_draw.c b/src/clearlooks_draw.c
index 3ee38cb..5c8ea28 100644
--- a/src/clearlooks_draw.c
+++ b/src/clearlooks_draw.c
@@ -344,7 +344,7 @@ clearlooks_draw_button (cairo_t *cr,
height-(yoffset*2)-2,
radius, clearlooks_get_corners (engine));
- if (state & GTK_STATE_FLAG_ACTIVE)
+ if ((state & GTK_STATE_FLAG_ACTIVE) == 0)
{
cairo_pattern_t *pattern;
CairoColor top_shade, topmiddle_shade, bottom_shade, middle_shade;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]