GtkRange has two child classes: GtkScale and GtkScrollbar
GtkRange's expose implements the painting of GtkScrollbar, and GtkScale implements its own.
GtkScale implements a mark API that support labels :
void gtk_scale_add_mark (GtkScale*, gdouble, GtkPositionType, const gchar*) void gtk_scale_clear_marks (GtkScale*);
Implementing Generic Marks for GtkScrollbar
There are two options here:
* Implement an add_mark (GtkScrollbar*, gdouble) method for GtkScrollbar. The problem with this one is that the code to draw the scrollbar lies in GtkRange.
* Implement generic mark support in GtkRange. The problem here is that GtkScale will have to use the underlying, and even then is GtkRange the right place for the GtkScrollbar expose?
This is an example of the expected result of the feature: