mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 08:40:08 +00:00
range: don't set junction sides on scrollbar steppers
This commit is contained in:
parent
77e46de0e1
commit
11f07f9bdc
@ -1842,7 +1842,6 @@ _gtk_range_update_context_for_stepper (GtkRange *range,
|
||||
}
|
||||
|
||||
gtk_style_context_set_junction_sides (context, sides);
|
||||
gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1912,7 +1911,14 @@ draw_stepper (GtkRange *range,
|
||||
context = gtk_widget_get_style_context (widget);
|
||||
|
||||
gtk_style_context_save (context);
|
||||
_gtk_range_update_context_for_stepper (range, context, stepper);
|
||||
|
||||
/* don't set juction sides on scrollbar steppers */
|
||||
if (gtk_style_context_has_class (context, GTK_STYLE_CLASS_SCROLLBAR))
|
||||
gtk_style_context_set_junction_sides (context, GTK_JUNCTION_NONE);
|
||||
else
|
||||
_gtk_range_update_context_for_stepper (range, context, stepper);
|
||||
|
||||
gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON);
|
||||
gtk_style_context_set_state (context, state);
|
||||
|
||||
gtk_render_background (context, cr,
|
||||
|
Loading…
Reference in New Issue
Block a user