summaryrefslogtreecommitdiff
path: root/gtk/gtkrange.h
diff options
context:
space:
mode:
authorMichael Natterer <mitch@imendio.com>2005-11-11 12:48:29 +0000
committerMichael Natterer <mitch@src.gnome.org>2005-11-11 12:48:29 +0000
commitfc7c8bbeb44648f437d92b2a55270ae991301134 (patch)
tree0192127838ff6a0a9c6ddc5fb078c7af649f6f4b /gtk/gtkrange.h
parente0cad47afc4fb138709d44b10fdaf7be365620b8 (diff)
downloadgtk+-fc7c8bbeb44648f437d92b2a55270ae991301134.tar.gz
Added per-stepper API for GtkRange's stepper sensitivity as discussed in
2005-11-11 Michael Natterer <mitch@imendio.com> Added per-stepper API for GtkRange's stepper sensitivity as discussed in bug #321056: * gtk/gtkenums.h: added GtkSensitivityType which can be { AUTO, ON, OFF }. * gtk/gtkrange.[ch]: added properties "lower-stepper-sensitivity" and "upper-stepper-sensitivity" and public getters/setters for them. Changed stepper drawing to honor the new properties. * gtk/gtk.symbols: added the new symbols.
Diffstat (limited to 'gtk/gtkrange.h')
-rw-r--r--gtk/gtkrange.h56
1 files changed, 33 insertions, 23 deletions
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h
index 7bd057e51b..d4ef1b3e81 100644
--- a/gtk/gtkrange.h
+++ b/gtk/gtkrange.h
@@ -129,29 +129,39 @@ struct _GtkRangeClass
};
-GType gtk_range_get_type (void) G_GNUC_CONST;
-
-void gtk_range_set_update_policy (GtkRange *range,
- GtkUpdateType policy);
-GtkUpdateType gtk_range_get_update_policy (GtkRange *range);
-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);
-
-gdouble _gtk_range_get_wheel_delta (GtkRange *range,
- GdkScrollDirection direction);
+GType gtk_range_get_type (void) G_GNUC_CONST;
+
+void gtk_range_set_update_policy (GtkRange *range,
+ GtkUpdateType policy);
+GtkUpdateType gtk_range_get_update_policy (GtkRange *range);
+
+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_lower_stepper_sensitivity (GtkRange *range,
+ GtkSensitivityType sensitivity);
+GtkSensitivityType gtk_range_get_lower_stepper_sensitivity (GtkRange *range);
+void gtk_range_set_upper_stepper_sensitivity (GtkRange *range,
+ GtkSensitivityType sensitivity);
+GtkSensitivityType gtk_range_get_upper_stepper_sensitivity (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);
+
+gdouble _gtk_range_get_wheel_delta (GtkRange *range,
+ GdkScrollDirection direction);
G_END_DECLS