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)
This commit is contained in:
Owen Taylor 2002-01-23 20:15:48 +00:00 committed by Owen Taylor
parent 44d727eaa1
commit c099271bb5
8 changed files with 46 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -1,3 +1,8 @@
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

View File

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