summaryrefslogtreecommitdiff
path: root/gtk/gtkrange.h
diff options
context:
space:
mode:
authorAndrea Cimitan <andrea.cimitan@gmail.com>2011-12-14 17:16:09 +0100
committerCosimo Cecchi <cosimoc@gnome.org>2011-12-14 17:16:09 +0100
commit40423df23428109c75119d7291f876785f0db73f (patch)
tree03450f281aa935ca174b8ff7357da9af166ba802 /gtk/gtkrange.h
parent8c1f8c06686052f776f1afe780116540ad7f1e89 (diff)
downloadgtk+-40423df23428109c75119d7291f876785f0db73f.tar.gz
Add has-origin property for GtkScale
If the scale has an origin (it will have one by default), GtkRange will render the two sides before/after the current value with different style classes, making it possible for themes to use different colors and properties for the two areas. This was possible in GTK 2 with style details, but got lost during the road to 3.0. https://bugzilla.gnome.org/show_bug.cgi?id=665140
Diffstat (limited to 'gtk/gtkrange.h')
-rw-r--r--gtk/gtkrange.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkrange.h b/gtk/gtkrange.h
index 7c01ab21d7..5fa54e12f4 100644
--- a/gtk/gtkrange.h
+++ b/gtk/gtkrange.h
@@ -150,7 +150,9 @@ gint gtk_range_get_round_digits (GtkRange *rang
/* internal API */
gdouble _gtk_range_get_wheel_delta (GtkRange *range,
GdkScrollDirection direction);
-
+void _gtk_range_set_has_origin (GtkRange *range,
+ gboolean has_origin);
+gboolean _gtk_range_get_has_origin (GtkRange *range);
void _gtk_range_set_stop_values (GtkRange *range,
gdouble *values,
gint n_values);