[gtk+/gtk-style-context: 189/191] 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: 189/191] GtkStyle: set the active flag depending on shadow_type in draw_box().
- Date: Tue, 17 Aug 2010 14:04:05 +0000 (UTC)
commit 8ca77b14b3cef051ac6fda0524d9df779714f565
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 b155854..ab38b02 100644
--- a/gtk/gtkstyle.c
+++ b/gtk/gtkstyle.c
@@ -3548,9 +3548,6 @@ gtk_default_draw_box (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;
@@ -3564,6 +3561,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);
gtk_render_background (context, cr, x, y, width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]