murrine r74 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r74 - in trunk: . src
- Date: Fri, 26 Sep 2008 22:39:42 +0000 (UTC)
Author: acimitan
Date: Fri Sep 26 22:39:41 2008
New Revision: 74
URL: http://svn.gnome.org/viewvc/murrine?rev=74&view=rev
Log:
2008-09-27 Andrea Cimitan <andrea cimitan gmail com>
* src/murrine_style.c (murrine_style_draw_shadow),
(murrine_style_draw_box_gap), (murrine_style_draw_box):
Better code
Modified:
trunk/ChangeLog
trunk/src/murrine_style.c
Modified: trunk/src/murrine_style.c
==============================================================================
--- trunk/src/murrine_style.c (original)
+++ trunk/src/murrine_style.c Fri Sep 26 22:39:41 2008
@@ -397,15 +397,17 @@
{
cairo_rectangle (cr, 0, 0, width, height);
if (!params.mrn_gradient.use_rgba)
+ {
murrine_set_color_rgb (cr, ¶ms.parentbg);
+ cairo_fill(cr);
+ }
else
{
- cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
- cairo_paint(cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
murrine_set_color_rgba (cr, ¶ms.parentbg, WINDOW_OPACITY);
+ cairo_fill(cr);
+ cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
}
- cairo_fill (cr);
}
STYLE_FUNCTION(draw_entry) (cr, &murrine_style->colors, ¶ms,
@@ -552,19 +554,21 @@
if (params.roundness < 2)
params.corners = MRN_CORNER_NONE;
- if (params.mrn_gradient.use_rgba)
- cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
-
/* Fill the background with bg[NORMAL] */
clearlooks_rounded_rectangle (cr, x, y, width, height, params.roundness, params.corners);
+
if (!params.mrn_gradient.use_rgba)
+ {
murrine_set_color_rgb (cr, &colors->bg[0]);
+ cairo_fill (cr);
+ }
else
+ {
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
murrine_set_color_rgba (cr, &colors->bg[0], NOTEBOOK_OPACITY);
- cairo_fill(cr);
-
- if (params.mrn_gradient.use_rgba)
+ cairo_fill(cr);
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
+ }
STYLE_FUNCTION(draw_frame) (cr, colors, ¶ms, &frame,
x, y, width, height);
@@ -940,15 +944,17 @@
{
cairo_rectangle (cr, 0, 0, width, height);
if (!params.mrn_gradient.use_rgba)
+ {
murrine_set_color_rgb (cr, ¶ms.parentbg);
+ cairo_fill(cr);
+ }
else
{
- cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
- cairo_paint(cr);
- cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
+ cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
murrine_set_color_rgba (cr, ¶ms.parentbg, WINDOW_OPACITY);
+ cairo_fill(cr);
+ cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
}
- cairo_fill (cr);
}
STYLE_FUNCTION(draw_progressbar_trough) (cr, colors, ¶ms, x, y, width, height);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]