summaryrefslogtreecommitdiff
path: root/gtk/gtkrange.h
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2001-06-05 20:07:02 +0000
committerHavoc Pennington <hp@src.gnome.org>2001-06-05 20:07:02 +0000
commitb32e7c9bb82396e4930957bb649a2e1cd57f00c1 (patch)
treeb95893653c899c31699a91803eebeb1e934e7f1e /gtk/gtkrange.h
parent451b224324864047842dfe009834a0fe53728147 (diff)
downloadgdk-pixbuf-b32e7c9bb82396e4930957bb649a2e1cd57f00c1.tar.gz
clamp the value to the range that was set
2001-06-05 Havoc Pennington <hp@redhat.com> * gtk/gtkspinbutton.c (gtk_spin_button_set_range): clamp the value to the range that was set * gtk/gtkrange.c: add value_changed signal, primarily intended for use with GtkScale (gtk_range_set_increments): new function (gtk_range_set_range): new function with weird name (gtk_range_set_value): new function (gtk_range_get_value): new function * gtk/gtkspinbutton.c (gtk_spin_button_get_value): rename from gtk_spin_button_get_value_as_float(). Compat #define added for get_value_as_float. * gtk/gtkhscale.c (gtk_hscale_new_with_range): new function * gtk/gtkvscale.c (gtk_vscale_new_with_range): new function 2001-06-05 Havoc Pennington <hp@redhat.com> * test-loaders.c (main): use putenv not setenv, reported by Armin Theissen
Diffstat (limited to 'gtk/gtkrange.h')
-rw-r--r--gtk/gtkrange.h28
1 files changed, 19 insertions, 9 deletions
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h
index 6228b74e3..e988d56e0 100644
--- a/gtk/gtkrange.h
+++ b/gtk/gtkrange.h
@@ -106,6 +106,8 @@ struct _GtkRangeClass
/* what detail to pass to GTK drawing functions */
gchar *slider_detail;
gchar *stepper_detail;
+
+ void (* value_changed) (GtkRange *range);
/* action signals for keybindings */
void (* move_slider) (GtkRange *range,
@@ -119,16 +121,24 @@ struct _GtkRangeClass
GtkType gtk_range_get_type (void) G_GNUC_CONST;
-void gtk_range_set_update_policy (GtkRange *range,
- GtkUpdateType policy);
-
-void gtk_range_set_adjustment (GtkRange *range,
- GtkAdjustment *adjustment);
-GtkAdjustment* gtk_range_get_adjustment (GtkRange *range);
+void gtk_range_set_update_policy (GtkRange *range,
+ GtkUpdateType policy);
+void gtk_range_set_adjustment (GtkRange *range,
+ GtkAdjustment *adjustment);
+GtkAdjustment* gtk_range_get_adjustment (GtkRange *range);
+void gtk_range_set_inverted (GtkRange *range,
+ gboolean setting);
+gboolean gtk_range_get_inverted (GtkRange *range);
+void gtk_range_set_increments (GtkRange *range,
+ gdouble step,
+ gdouble page);
+void gtk_range_set_range (GtkRange *range,
+ gdouble min,
+ gdouble max);
+void gtk_range_set_value (GtkRange *range,
+ gdouble value);
+gdouble gtk_range_get_value (GtkRange *range);
-void gtk_range_set_inverted (GtkRange *range,
- gboolean setting);
-gboolean gtk_range_get_inverted (GtkRange *range);
#ifdef __cplusplus
}