mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 09:00:34 +00:00
GtkStyle: set the active flag depending on shadow_type in draw_box().
This commit is contained in:
parent
bccec3ef0c
commit
11ac0cb3e1
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user