GtkStyle: set the active flag depending on shadow_type in draw_box().

This commit is contained in:
Carlos Garnacho 2010-08-16 18:40:03 +02:00
parent bccec3ef0c
commit 11ac0cb3e1

View File

@ -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;