colorswatch: Render background properly

We want to render a background *and* the current color (if there is
one).

This also adds a custom function gtk_render_add_content_path() which
adds the path of the current content area to a cairo_t.
This commit is contained in:
Benjamin Otte
2014-10-07 23:24:51 +02:00
parent 7295c8f12b
commit c39bd623f6
3 changed files with 60 additions and 13 deletions

View File

@ -22,6 +22,12 @@
#include <pango/pango.h>
#include <gdk/gdk.h>
void gtk_render_content_path (GtkStyleContext *context,
cairo_t *cr,
double x,
double y,
double width,
double height);
void gtk_render_paint_spinner (cairo_t *cr,
gdouble radius,
gdouble progress);