forked from AuroraMiddleware/gtk
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:
parent
44d727eaa1
commit
c099271bb5
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user