summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.h
diff options
context:
space:
mode:
authorStefan Jeske <stefan@src.gnome.org>1998-06-17 20:07:31 +0000
committerStefan Jeske <stefan@src.gnome.org>1998-06-17 20:07:31 +0000
commit7cb2ce4d117906925f7cdac6d4b1dbed4babf1fd (patch)
tree8c0e78321fc337d57732edbc228d2573bee036f9 /gtk/gtkspinbutton.h
parent7d0331a679c00c20db87822739e7544c67c6c2fe (diff)
downloadgdk-pixbuf-7cb2ce4d117906925f7cdac6d4b1dbed4babf1fd.tar.gz
Changed GtkSpinButtonUpdatePolicy enum, added keyboard
acceleration, new API gtk_spin_button_set_snap_to_ticks.
Diffstat (limited to 'gtk/gtkspinbutton.h')
-rw-r--r--gtk/gtkspinbutton.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gtk/gtkspinbutton.h b/gtk/gtkspinbutton.h
index 8d1641882..99f2995ee 100644
--- a/gtk/gtkspinbutton.h
+++ b/gtk/gtkspinbutton.h
@@ -41,9 +41,8 @@ extern "C" {
typedef enum
{
- GTK_UPDATE_ALWAYS = 1 << 0,
- GTK_UPDATE_IF_VALID = 1 << 1,
- GTK_UPDATE_SNAP_TO_TICKS = 1 << 2
+ GTK_UPDATE_ALWAYS,
+ GTK_UPDATE_IF_VALID
} GtkSpinButtonUpdatePolicy;
@@ -61,11 +60,12 @@ struct _GtkSpinButton
GtkShadowType shadow_type;
guint32 timer;
+ guint32 ev_time;
gfloat climb_rate;
gfloat timer_step;
- guint8 update_policy;
+ GtkSpinButtonUpdatePolicy update_policy;
guint in_child : 2;
guint click_child : 2;
@@ -75,6 +75,7 @@ struct _GtkSpinButton
guint digits : 3;
guint numeric : 1;
guint wrap : 1;
+ guint snap_to_ticks : 1;
};
struct _GtkSpinButtonClass
@@ -124,7 +125,8 @@ void gtk_spin_button_set_wrap (GtkSpinButton *spin_button,
void gtk_spin_button_set_shadow_type (GtkSpinButton *spin_button,
GtkShadowType shadow_type);
-
+void gtk_spin_button_set_snap_to_ticks (GtkSpinButton *spin_button,
+ gint snap_to_ticks);
#ifdef __cplusplus