diff options
author | Tim Janik <timj@gtk.org> | 1998-09-26 03:12:03 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-09-26 03:12:03 +0000 |
commit | d0b7b3f5c95b2916b630ad5dc78de9be250fad6f (patch) | |
tree | db3e08d7b29d9431b3b6b6ddbef9f61805c6ccf5 /gtk/gtkspinbutton.h | |
parent | c961dd184bee95fe213f770a963e13f34cc1a2de (diff) | |
download | gtk+-d0b7b3f5c95b2916b630ad5dc78de9be250fad6f.tar.gz |
set binary age and interface age to 0.
Sat Sep 26 04:46:22 1998 Tim Janik <timj@gtk.org>
* configure.in: set binary age and interface age to 0.
* gtk/gtkspinbutton.h:
* gtk/gtkspinbutton.c: changed gtk_spin_button_construct to
gtk_spin_button_configure. gtk_spin_button_construct is still defined
as an alias for gtk_spin_button_configure for source compatibility,
but actuall use is deprecated.
typeness corrections, i.e. gint->gboolean and gint->guint.
added object arguments: GtkSpinButton::value, GtkSpinButton::wrap,
GtkSpinButton::shadow_type, GtkSpinButton::update_policy,
GtkSpinButton::numeric, GtkSpinButton::snap_to_ticks,
GtkSpinButton::adjustment, GtkSpinButton::digits and
GtkSpinButton::climb_rate.
GtkType and macro fixups.
Diffstat (limited to 'gtk/gtkspinbutton.h')
-rw-r--r-- | gtk/gtkspinbutton.h | 40 |
1 files changed, 23 insertions, 17 deletions
diff --git a/gtk/gtkspinbutton.h b/gtk/gtkspinbutton.h index ef50d76705..d33ca6b015 100644 --- a/gtk/gtkspinbutton.h +++ b/gtk/gtkspinbutton.h @@ -31,20 +31,23 @@ #ifdef __cplusplus extern "C" { +#pragma } #endif /* __cplusplus */ - - -#define GTK_SPIN_BUTTON(obj) GTK_CHECK_CAST (obj, gtk_spin_button_get_type (), GtkSpinButton) -#define GTK_SPIN_BUTTON_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_spin_button_get_type (), GtkSpinButtonClass) -#define GTK_IS_SPIN_BUTTON(obj) GTK_CHECK_TYPE (obj, gtk_spin_button_get_type ()) - - + + +#define GTK_TYPE_SPIN_BUTTON (gtk_spin_button_get_type ()) +#define GTK_SPIN_BUTTON(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_SPIN_BUTTON, GtkSpinButton)) +#define GTK_SPIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_SPIN_BUTTON, GtkSpinButtonClass)) +#define GTK_IS_SPIN_BUTTON(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_SPIN_BUTTON)) +#define GTK_IS_SPIN_BUTTON_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_SPIN_BUTTON)) + + typedef enum { GTK_UPDATE_ALWAYS, GTK_UPDATE_IF_VALID } GtkSpinButtonUpdatePolicy; - + typedef enum { GTK_SPIN_STEP_FORWARD, @@ -69,7 +72,7 @@ struct _GtkSpinButton GdkWindow *panel; GtkShadowType shadow_type; - + guint32 timer; guint32 ev_time; @@ -95,16 +98,16 @@ struct _GtkSpinButtonClass }; -guint gtk_spin_button_get_type (void); +GtkType gtk_spin_button_get_type (void); -void gtk_spin_button_construct (GtkSpinButton *spin_button, +void gtk_spin_button_configure (GtkSpinButton *spin_button, GtkAdjustment *adjustment, gfloat climb_rate, - gint digits); + guint digits); GtkWidget* gtk_spin_button_new (GtkAdjustment *adjustment, gfloat climb_rate, - gint digits); + guint digits); void gtk_spin_button_set_adjustment (GtkSpinButton *spin_button, GtkAdjustment *adjustment); @@ -112,7 +115,7 @@ void gtk_spin_button_set_adjustment (GtkSpinButton *spin_button, GtkAdjustment* gtk_spin_button_get_adjustment (GtkSpinButton *spin_button); void gtk_spin_button_set_digits (GtkSpinButton *spin_button, - gint digits); + guint digits); gfloat gtk_spin_button_get_value_as_float (GtkSpinButton *spin_button); @@ -125,20 +128,23 @@ void gtk_spin_button_set_update_policy (GtkSpinButton *spin_button, GtkSpinButtonUpdatePolicy policy); void gtk_spin_button_set_numeric (GtkSpinButton *spin_button, - gint numeric); + gboolean numeric); void gtk_spin_button_spin (GtkSpinButton *spin_button, GtkSpinType direction, gfloat increment); void gtk_spin_button_set_wrap (GtkSpinButton *spin_button, - gint wrap); + gboolean wrap); 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); + gboolean snap_to_ticks); + +/* deprecated, defined for backwards compatibility */ +#define gtk_spin_button_construct gtk_spin_button_configure #ifdef __cplusplus |