forked from AuroraMiddleware/gtk
gtk: reliably stop spinning when a GtkSpinButton is hidden
Call stop_spinning() also in unrealize() because unmap() is not reliably called in GTK+ 2.x. This is not an issue in GTK+ 3.x.
This commit is contained in:
parent
30a2f8edcc
commit
5de08612dc
@ -588,6 +588,8 @@ gtk_spin_button_unrealize (GtkWidget *widget)
|
||||
{
|
||||
GtkSpinButton *spin = GTK_SPIN_BUTTON (widget);
|
||||
|
||||
gtk_spin_button_stop_spinning (GTK_SPIN_BUTTON (widget));
|
||||
|
||||
GTK_WIDGET_CLASS (gtk_spin_button_parent_class)->unrealize (widget);
|
||||
|
||||
if (spin->panel)
|
||||
|
Loading…
Reference in New Issue
Block a user