SpinButton: Redraw +/- buttons after :wrap changes

Otherwise, the + or - button might change sensitivity based on whether
it can be used to wrap, but without ensuring we update its state, the
ability to :wrap isn't reflected until something else triggers a draw.

https://gitlab.gnome.org/GNOME/gtk/issues/88
This commit is contained in:
Daniel Boles
2018-03-14 22:56:01 +00:00
parent fcfabb2fd3
commit 0a0323813e

View File

@@ -2431,9 +2431,10 @@ gtk_spin_button_set_wrap (GtkSpinButton *spin_button,
if (priv->wrap != wrap)
{
priv->wrap = wrap;
priv->wrap = wrap;
g_object_notify (G_OBJECT (spin_button), "wrap");
g_object_notify (G_OBJECT (spin_button), "wrap");
update_node_state (spin_button);
}
}