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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user