diff options
author | Tim Janik <timj@gtk.org> | 2002-01-25 13:22:00 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 2002-01-25 13:22:00 +0000 |
commit | 9c6dc3d52d87d1c0c53aa2dc99f7e3b8f9436a28 (patch) | |
tree | bbc0d22d0701e4071cfde8ac4664e976e7d8099f /gtk/gtkspinbutton.h | |
parent | 2ccd6fd5d7dd8058a79578d46fa543c19fbb8055 (diff) | |
download | gtk+-9c6dc3d52d87d1c0c53aa2dc99f7e3b8f9436a28.tar.gz |
assert that the passed in arrow is always _UP or _DOWN, this catches false
Fri Jan 25 14:03:36 2002 Tim Janik <timj@gtk.org>
* gtk/gtkspinbutton.c (gtk_spin_button_draw_arrow): assert
that the passed in arrow is always _UP or _DOWN, this catches
false invocations which lead to drawing artefacts.
(start_spinning): likewise, i.e. sanity check the passed in arrow.
(gtk_spin_button_button_release): fix arrow redrawing.
(gtk_spin_button_button_press): must set click_child for
button3 even if we don't take spinning action right away.
* gtk/gtkspinbutton.h (struct _GtkSpinButton): document
valid values for click_child.
Diffstat (limited to 'gtk/gtkspinbutton.h')
-rw-r--r-- | gtk/gtkspinbutton.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkspinbutton.h b/gtk/gtkspinbutton.h index d22c9c3bb3..04610cb455 100644 --- a/gtk/gtkspinbutton.h +++ b/gtk/gtkspinbutton.h @@ -89,7 +89,7 @@ struct _GtkSpinButton GtkSpinButtonUpdatePolicy update_policy; guint in_child : 2; - guint click_child : 2; + guint click_child : 2; /* valid: GTK_ARROW_UP=0, GTK_ARROW_DOWN=1 or 2=NONE/BOTH */ guint button : 2; guint need_timer : 1; guint timer_calls : 3; |