colorscale: Draw a trough

Make sure the color info is actually drawn inside the trough.
This commit is contained in:
Benjamin Otte
2016-03-09 17:27:01 +01:00
parent 8351a6e4d6
commit fc7335bdb4
4 changed files with 35 additions and 143 deletions

View File

@ -64,6 +64,13 @@ GtkWidget * gtk_color_scale_new (GtkAdjustment *adjustment,
void gtk_color_scale_set_rgba (GtkColorScale *scale,
const GdkRGBA *color);
void gtk_color_scale_draw_trough (GtkColorScale *scale,
cairo_t *cr,
int x,
int y,
int width,
int height);
G_END_DECLS
#endif /* __GTK_COLOR_SCALE_H__ */