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.
This commit is contained in:
committed by
Mike Kestner
parent
fe8eecdf75
commit
c80b705470
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user