summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.h
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ameritech.net>2001-03-30 03:35:47 +0000
committerMike Kestner <mkestner@src.gnome.org>2001-03-30 03:35:47 +0000
commitc80b705470ae83ac8ca144f4a55d8365a229ded7 (patch)
treee47e3384f2f1cf7cccbca6f6dcc791cac2dad39c /gtk/gtkspinbutton.h
parentfe8eecdf7509819b2ffd489ce6929230d4d78032 (diff)
downloadgtk+-c80b705470ae83ac8ca144f4a55d8365a229ded7.tar.gz
added value_changed signal which proxies for the adjustment. Cleaned
Thu Mar 29 21:20:38 2001 Mike Kestner <mkestner@ameritech.net> * gtk/gtkspinbutton.c : added value_changed signal which proxies for the adjustment. Cleaned redundant preconditions (spin != NULL). Added inline API function docs. (gtk_spin_button_new_with_range): New convenience constructor. (gtk_spin_button_set_increments): New adjustment helper. (gtk_spin_button_set_range): New adjustment helper. * gtk/testgtk.c : added test of the new convenince constructor and value_changed signals. docs/reference/ChangeLog 2001-03-29 Mike Kestner <mkestner@ameritech.net> * gtk/tmpl/gtkspinbutton.html: killed function docs that are now inline.
Diffstat (limited to 'gtk/gtkspinbutton.h')
-rw-r--r--gtk/gtkspinbutton.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gtk/gtkspinbutton.h b/gtk/gtkspinbutton.h
index 72ddf47e9b..3d1561f444 100644
--- a/gtk/gtkspinbutton.h
+++ b/gtk/gtkspinbutton.h
@@ -106,6 +106,7 @@ struct _GtkSpinButtonClass
gint (*input) (GtkSpinButton *spin_button,
gdouble *new_value);
gint (*output) (GtkSpinButton *spin_button);
+ void (*value_changed) (GtkSpinButton *spin_button);
};
@@ -120,6 +121,10 @@ GtkWidget* gtk_spin_button_new (GtkAdjustment *adjustment,
gdouble climb_rate,
guint digits);
+GtkWidget* gtk_spin_button_new_with_range (gdouble min,
+ gdouble max,
+ gdouble step);
+
void gtk_spin_button_set_adjustment (GtkSpinButton *spin_button,
GtkAdjustment *adjustment);
@@ -128,6 +133,14 @@ GtkAdjustment* gtk_spin_button_get_adjustment (GtkSpinButton *spin_button);
void gtk_spin_button_set_digits (GtkSpinButton *spin_button,
guint digits);
+void gtk_spin_button_set_increments (GtkSpinButton *spin_button,
+ gdouble step,
+ gdouble page);
+
+void gtk_spin_button_set_range (GtkSpinButton *spin_button,
+ gdouble min,
+ gdouble max);
+
gdouble gtk_spin_button_get_value_as_float (GtkSpinButton *spin_button);
gint gtk_spin_button_get_value_as_int (GtkSpinButton *spin_button);