[gtk+/gtk-2-24] gtk: reliably stop spinning when a GtkSpinButton is hidden



commit 5de08612dc8cf6970d2c795ec204482c18101c9d
Author: Michael Natterer <mitch lanedo com>
Date:   Wed Feb 13 14:35:45 2013 +0100

    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.

 gtk/gtkspinbutton.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c
index 9f74f7a..29f1cc9 100644
--- a/gtk/gtkspinbutton.c
+++ b/gtk/gtkspinbutton.c
@@ -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)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]