summaryrefslogtreecommitdiff
path: root/gtk/gtkscale.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/gtkscale.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/gtkscale.h')
-rw-r--r--gtk/gtkscale.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkscale.h b/gtk/gtkscale.h
index b0fb1313b2..554551ebe6 100644
--- a/gtk/gtkscale.h
+++ b/gtk/gtkscale.h
@@ -90,6 +90,9 @@ gint gtk_scale_get_digits (GtkScale *scale);
void gtk_scale_set_draw_value (GtkScale *scale,
gboolean draw_value);
gboolean gtk_scale_get_draw_value (GtkScale *scale);
+void gtk_scale_set_has_origin (GtkScale *scale,
+ gboolean has_origin);
+gboolean gtk_scale_get_has_origin (GtkScale *scale);
void gtk_scale_set_value_pos (GtkScale *scale,
GtkPositionType pos);
GtkPositionType gtk_scale_get_value_pos (GtkScale *scale);