Set top/bottom style classes on spinbutton buttons
This commit is contained in:
@ -998,6 +998,10 @@ gtk_spin_button_draw_arrow (GtkSpinButton *spin_button,
|
|||||||
|
|
||||||
gtk_style_context_save (context);
|
gtk_style_context_save (context);
|
||||||
gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON);
|
gtk_style_context_add_class (context, GTK_STYLE_CLASS_BUTTON);
|
||||||
|
if (arrow_type == GTK_ARROW_UP)
|
||||||
|
gtk_style_context_add_class (context, GTK_STYLE_CLASS_TOP);
|
||||||
|
else
|
||||||
|
gtk_style_context_add_class (context, GTK_STYLE_CLASS_BOTTOM);
|
||||||
|
|
||||||
priv = spin_button->priv;
|
priv = spin_button->priv;
|
||||||
widget = GTK_WIDGET (spin_button);
|
widget = GTK_WIDGET (spin_button);
|
||||||
|
Reference in New Issue
Block a user