summaryrefslogtreecommitdiff
path: root/gtk/gtkspinbutton.h
diff options
context:
space:
mode:
authorStefan Jeske <stefan@src.gnome.org>1999-02-28 16:04:47 +0000
committerStefan Jeske <stefan@src.gnome.org>1999-02-28 16:04:47 +0000
commit209f5d5cd4078861b6f0fa593f57802c84ea2a7b (patch)
treef1ffb0d9d364134dc83aba2d6fe4c50c22f35647 /gtk/gtkspinbutton.h
parente84df313c42338029e3c21006dd08e93dc692f77 (diff)
downloadgtk+-209f5d5cd4078861b6f0fa593f57802c84ea2a7b.tar.gz
Added two new signals to GtkSpinButton, "input" and "output", to make the
* gtk/gtkspinbutton.[c,h] gtk/testgtk.c: Added two new signals to GtkSpinButton, "input" and "output", to make the output more flexible. The user has to provide a mapping between adjustment->value and the output string (and vice versa, if the spin button is editable). See testgtk for examples.
Diffstat (limited to 'gtk/gtkspinbutton.h')
-rw-r--r--gtk/gtkspinbutton.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk/gtkspinbutton.h b/gtk/gtkspinbutton.h
index aad6b23b15..f07074ba44 100644
--- a/gtk/gtkspinbutton.h
+++ b/gtk/gtkspinbutton.h
@@ -47,6 +47,7 @@ extern "C" {
#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))
+#define INPUT_ERROR -1
typedef enum
{
@@ -101,6 +102,10 @@ struct _GtkSpinButton
struct _GtkSpinButtonClass
{
GtkEntryClass parent_class;
+
+ gint (*input) (GtkSpinButton *spin_button,
+ gfloat *new_value);
+ gint (*output) (GtkSpinButton *spin_button);
};