diff options
author | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2014-06-04 10:45:51 +0300 |
---|---|---|
committer | Alberts Muktupāvels <alberts.muktupavels@gmail.com> | 2014-06-04 10:45:51 +0300 |
commit | 055f014bfc8b4c25bdc9d90a4fbfcd44e891e583 (patch) | |
tree | ce3b49c45620bbec3ddb305c1153f1c9b9f07cd7 | |
parent | a15e562ee6b3a1bd9ad69275942609e2866f2931 (diff) | |
download | metacity-055f014bfc8b4c25bdc9d90a4fbfcd44e891e583.tar.gz |
Update previous commit for gtk+-3
Previous patch was made for gtk+-2 version. Update it to work with
gtk+-3 version.
-rw-r--r-- | src/ui/theme.c | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/ui/theme.c b/src/ui/theme.c index 1433efc6..bdc7ccd1 100644 --- a/src/ui/theme.c +++ b/src/ui/theme.c @@ -3840,20 +3840,22 @@ meta_draw_op_draw_with_env (const MetaDrawOp *op, cairo_pattern_t *linpat; linpat = cairo_pattern_create_linear (rx, ry, text_space, env->title_height); - cairo_pattern_add_color_stop_rgb (linpat, 0, color.red/65535.0, - color.green/65535.0, - color.blue/65535.0); - cairo_pattern_add_color_stop_rgb (linpat, startalpha, - color.red/65535.0, - color.green/65535.0, - color.blue/65535.0); - cairo_pattern_add_color_stop_rgba (linpat, 1, color.red/65535.0, - color.green/65535.0, - color.blue/65535.0, 0); + cairo_pattern_add_color_stop_rgba (linpat, 0, color.red, + color.green, + color.blue, + color.alpha); + cairo_pattern_add_color_stop_rgba (linpat, startalpha, + color.red, + color.green, + color.blue, + color.alpha); + cairo_pattern_add_color_stop_rgba (linpat, 1, color.red, + color.green, + color.blue, 0); cairo_set_source(cr, linpat); cairo_pattern_destroy(linpat); } else { - gdk_cairo_set_source_color (cr, &color); + gdk_cairo_set_source_rgba (cr, &color); } cairo_move_to (cr, rx, ry); |