Commit c099271b authored by Owen Taylor's avatar Owen Taylor Committed by Owen Taylor

Stop spinning if widget becomes insensitive. (#56248)

Wed Jan 23 15:12:16 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkspinbutton.c (gtk_spin_button_state_changed):
        Stop spinning if widget becomes insensitive. (#56248)
parent 44d727ea
Wed Jan 23 15:12:16 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_state_changed):
Stop spinning if widget becomes insensitive. (#56248)
Wed Jan 23 14:44:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (EPSILON): Decreate value since
......
Wed Jan 23 15:12:16 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_state_changed):
Stop spinning if widget becomes insensitive. (#56248)
Wed Jan 23 14:44:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (EPSILON): Decreate value since
......
Wed Jan 23 15:12:16 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_state_changed):
Stop spinning if widget becomes insensitive. (#56248)
Wed Jan 23 14:44:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (EPSILON): Decreate value since
......
Wed Jan 23 15:12:16 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_state_changed):
Stop spinning if widget becomes insensitive. (#56248)
Wed Jan 23 14:44:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (EPSILON): Decreate value since
......
Wed Jan 23 15:12:16 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_state_changed):
Stop spinning if widget becomes insensitive. (#56248)
Wed Jan 23 14:44:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (EPSILON): Decreate value since
......
Wed Jan 23 15:12:16 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_state_changed):
Stop spinning if widget becomes insensitive. (#56248)
Wed Jan 23 14:44:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (EPSILON): Decreate value since
......
Wed Jan 23 15:12:16 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (gtk_spin_button_state_changed):
Stop spinning if widget becomes insensitive. (#56248)
Wed Jan 23 14:44:12 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkspinbutton.c (EPSILON): Decreate value since
......
......@@ -105,6 +105,8 @@ static gint gtk_spin_button_focus_out (GtkWidget *widget,
GdkEventFocus *event);
static void gtk_spin_button_grab_notify (GtkWidget *widget,
gboolean was_grabbed);
static void gtk_spin_button_state_changed (GtkWidget *widget,
GtkStateType previous_state);
static void gtk_spin_button_draw_arrow (GtkSpinButton *spin_button,
guint arrow);
static gint gtk_spin_button_timer (GtkSpinButton *spin_button);
......@@ -209,6 +211,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
widget_class->leave_notify_event = gtk_spin_button_leave_notify;
widget_class->focus_out_event = gtk_spin_button_focus_out;
widget_class->grab_notify = gtk_spin_button_grab_notify;
widget_class->state_changed = gtk_spin_button_state_changed;
entry_class->activate = gtk_spin_button_activate;
......@@ -914,6 +917,14 @@ gtk_spin_button_grab_notify (GtkWidget *widget,
gtk_spin_button_stop_spinning (GTK_SPIN_BUTTON (widget));
}
static void
gtk_spin_button_state_changed (GtkWidget *widget,
GtkStateType previous_state)
{
if (!GTK_WIDGET_IS_SENSITIVE (widget))
gtk_spin_button_stop_spinning (GTK_SPIN_BUTTON (widget));
}
static gint
gtk_spin_button_scroll (GtkWidget *widget,
GdkEventScroll *event)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment