diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-04-18 15:11:01 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2005-04-18 15:11:01 +0000 |
commit | 9725c8d752fff8989a5496d58ef090a6858d476f (patch) | |
tree | c27e52445f1e421102e2b0a6ed956609c0716fb8 /gtk/gtkhsv.c | |
parent | 9bd53c868336b97bfa3e9c79450bd0e4ce668c21 (diff) | |
download | gtk+-9725c8d752fff8989a5496d58ef090a6858d476f.tar.gz |
gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c Update to
2005-04-18 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.c gtk/gtkcolorsel.c gtk/gtkhsv.c gtk/gtkiconview.c
* gdk/gdkcolor.c gdk/gdkwindow.c gdk/gdkpixbuf-render.c
gdk/gdkpango.c tests/testcairo.c: Update to new Cairo API for
setting color and opacity. (#301066, Vincent Noel)
Diffstat (limited to 'gtk/gtkhsv.c')
-rw-r--r-- | gtk/gtkhsv.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkhsv.c b/gtk/gtkhsv.c index 991e3a1099..36908b707f 100644 --- a/gtk/gtkhsv.c +++ b/gtk/gtkhsv.c @@ -933,7 +933,7 @@ set_source_surface (cairo_t *cr, cairo_pattern_set_matrix (pattern, matrix); cairo_matrix_destroy (matrix); - cairo_set_pattern (cr, pattern); + cairo_set_source (cr, pattern); cairo_pattern_destroy (pattern); } @@ -1027,9 +1027,9 @@ paint_ring (GtkHSV *hsv, hsv_to_rgb (&r, &g, &b); if (INTENSITY (r, g, b) > 0.5) - cairo_set_rgb_color (source_cr, 0., 0., 0.); + cairo_set_source_rgb (source_cr, 0., 0., 0.); else - cairo_set_rgb_color (source_cr, 1., 1., 1.); + cairo_set_source_rgb (source_cr, 1., 1., 1.); cairo_move_to (source_cr, -x + center, - y + center); cairo_line_to (source_cr, @@ -1245,12 +1245,12 @@ paint_triangle (GtkHSV *hsv, if (INTENSITY (r, g, b) > 0.5) { detail = "colorwheel_light"; - cairo_set_rgb_color (cr, 0., 0., 0.); + cairo_set_source_rgb (cr, 0., 0., 0.); } else { detail = "colorwheel_dark"; - cairo_set_rgb_color (cr, 1., 1., 1.); + cairo_set_source_rgb (cr, 1., 1., 1.); } #define RADIUS 4 |