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:
Michael Natterer 2013-02-13 14:35:45 +01:00 committed by Michael Natterer
parent 30a2f8edcc
commit 5de08612dc

View File

@ -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)