diff options
author | Stefan Jeske <stefan@src.gnome.org> | 1998-06-19 17:33:51 +0000 |
---|---|---|
committer | Stefan Jeske <stefan@src.gnome.org> | 1998-06-19 17:33:51 +0000 |
commit | 1ae617e324572ab2d435e185dcd31b92090a0e6c (patch) | |
tree | e34deca5414123ea32899b5b9ef6490c2d6906d1 /gtk/gtkspinbutton.h | |
parent | 5c68ecbc0f681cc119108bbd01bdf3ce67a14a6d (diff) | |
download | gtk+-1ae617e324572ab2d435e185dcd31b92090a0e6c.tar.gz |
- Bug fix for precision problem causing occasional double emission of
* gtk/gtkspinbutton.h gtk/gtkspinbutton.c gtk/testgtk.c:
- Bug fix for precision problem causing occasional double emission
of "value_changed" signal (hopefully works now).
- API change (should be binary compatible) :
new enum GtkSpinType; modified gtk_spin_button_spin to use it.
Modified cursor example appropriately.
To spin by something other than step_/page_increment, use
gtk_spin_button_spin (spin, GTK_SPIN_USER_DEFINED, increment).
- Made GTK_SHADOW_NONE the default. ;)
- Fixed casting of GtkAdjustment* to GtkWidget* in
gtk_spin_button_value_changed.
Diffstat (limited to 'gtk/gtkspinbutton.h')
-rw-r--r-- | gtk/gtkspinbutton.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/gtk/gtkspinbutton.h b/gtk/gtkspinbutton.h index 99f2995eef..ef50d76705 100644 --- a/gtk/gtkspinbutton.h +++ b/gtk/gtkspinbutton.h @@ -45,7 +45,18 @@ typedef enum GTK_UPDATE_IF_VALID } GtkSpinButtonUpdatePolicy; - +typedef enum +{ + GTK_SPIN_STEP_FORWARD, + GTK_SPIN_STEP_BACKWARD, + GTK_SPIN_PAGE_FORWARD, + GTK_SPIN_PAGE_BACKWARD, + GTK_SPIN_HOME, + GTK_SPIN_END, + GTK_SPIN_USER_DEFINED +} GtkSpinType; + + typedef struct _GtkSpinButton GtkSpinButton; typedef struct _GtkSpinButtonClass GtkSpinButtonClass; @@ -83,6 +94,7 @@ struct _GtkSpinButtonClass GtkEntryClass parent_class; }; + guint gtk_spin_button_get_type (void); void gtk_spin_button_construct (GtkSpinButton *spin_button, @@ -115,9 +127,9 @@ void gtk_spin_button_set_update_policy (GtkSpinButton *spin_button, void gtk_spin_button_set_numeric (GtkSpinButton *spin_button, gint numeric); -void gtk_spin_button_spin (GtkSpinButton *spin_button, - guint direction, - gfloat step); +void gtk_spin_button_spin (GtkSpinButton *spin_button, + GtkSpinType direction, + gfloat increment); void gtk_spin_button_set_wrap (GtkSpinButton *spin_button, gint wrap); |