[metacity] Update previous commit for gtk+-3 Previous patch was made for gtk+-2 version. Update it to work with
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] Update previous commit for gtk+-3 Previous patch was made for gtk+-2 version. Update it to work with
- Date: Wed, 4 Jun 2014 07:49:01 +0000 (UTC)
commit 055f014bfc8b4c25bdc9d90a4fbfcd44e891e583
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Wed Jun 4 10:45:51 2014 +0300
Update previous commit for gtk+-3
Previous patch was made for gtk+-2 version. Update it to work with
gtk+-3 version.
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 1433efc..bdc7ccd 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]