[gtk+/gtk-style-context: 184/276] GtkStyle: set the active flag depending on shadow_type in draw_box().
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-style-context: 184/276] GtkStyle: set the active flag depending on shadow_type in draw_box().
- Date: Sat, 23 Oct 2010 19:10:35 +0000 (UTC)
commit 0aaabdce6634c65c734d35d17a2835d0af916fb4
Author: Carlos Garnacho <carlosg gnome org>
Date: Mon Aug 16 18:40:03 2010 +0200
GtkStyle: set the active flag depending on shadow_type in draw_box().
gtk/gtkstyle.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtkstyle.c b/gtk/gtkstyle.c
index 04923cb..55a2fa7 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -2484,6 +2484,9 @@ gtk_default_draw_box (GtkStyle *style,
break;
}
+ if (shadow_type == GTK_SHADOW_IN)
+ flags |= GTK_STATE_FLAG_ACTIVE;
+
gtk_style_context_set_state (context, flags);
cairo_save (cr);
@@ -3012,9 +3015,6 @@ gtk_default_draw_slider (GtkStyle *style,
switch (state_type)
{
- case GTK_STATE_ACTIVE:
- flags |= GTK_STATE_FLAG_ACTIVE;
- break;
case GTK_STATE_PRELIGHT:
flags |= GTK_STATE_FLAG_PRELIGHT;
break;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]