murrine r62 - in trunk: . src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r62 - in trunk: . src
- Date: Fri, 12 Sep 2008 11:52:01 +0000 (UTC)
Author: acimitan
Date: Fri Sep 12 11:52:01 2008
New Revision: 62
URL: http://svn.gnome.org/viewvc/murrine?rev=62&view=rev
Log:
2008-09-12 Andrea Cimitan <andrea cimitan gmail com>
* src/murrine_draw.c (murrine_draw_frame), (murrine_draw_tab):
* src/murrine_draw_rgba.c (murrine_rgba_draw_frame),
(murrine_rgba_draw_tab):
* src/murrine_style.c (murrine_style_draw_box_gap):
Removed useless code
Modified:
trunk/ChangeLog
trunk/src/murrine_draw.c
trunk/src/murrine_draw_rgba.c
trunk/src/murrine_style.c
Modified: trunk/src/murrine_draw.c
==============================================================================
--- trunk/src/murrine_draw.c (original)
+++ trunk/src/murrine_draw.c Fri Sep 12 11:52:01 2008
@@ -860,7 +860,7 @@
murrine_rounded_rectangle (cr, 0, 0, width-2, height-2, widget->roundness, widget->corners);
cairo_stroke (cr);
}
- else if (frame->shadow != MRN_SHADOW_NONE && frame->shadow != MRN_SHADOW_FLAT)
+ else if (frame->shadow != MRN_SHADOW_FLAT)
{
ShadowParameters shadow;
shadow.corners = widget->corners;
@@ -921,7 +921,6 @@
int x, int y, int width, int height)
{
const float RADIUS = 3.0;
- int corners;
const MurrineRGB *stripe_fill = &colors->spot[1];
const MurrineRGB *stripe_border = &colors->spot[2];
const MurrineRGB *fill = &colors->bg[widget->state_type];
@@ -944,31 +943,21 @@
height += RADIUS;
if (tab->gap_side == MRN_GAP_TOP)
- {
cairo_translate (cr, 0.0, -3.0); /* gap at the other side */
- corners = MRN_CORNER_BOTTOMLEFT | MRN_CORNER_BOTTOMRIGHT;
- }
- else
- corners = MRN_CORNER_TOPLEFT | MRN_CORNER_TOPRIGHT;
}
else
{
width += RADIUS;
if (tab->gap_side == MRN_GAP_LEFT)
- {
cairo_translate (cr, -3.0, 0.0); /* gap at the other side */
- corners = MRN_CORNER_TOPRIGHT | MRN_CORNER_BOTTOMRIGHT;
- }
- else
- corners = MRN_CORNER_TOPLEFT | MRN_CORNER_BOTTOMLEFT;
}
/* Set tab shape */
if (widget->roundness < 2)
cairo_rectangle (cr, 0, 0, width-1, height-1);
else
- clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, widget->corners);
/* Draw fill */
murrine_set_color_rgb (cr, fill);
@@ -1009,7 +998,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 0, 0, width-1, height-1);
else
- clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, widget->corners);
cairo_pattern_add_color_stop_rgb (pattern, 0.00, shade1.r, shade1.g, shade1.b);
cairo_pattern_add_color_stop_rgb (pattern, 0.45, shade2.r, shade2.g, shade2.b);
@@ -1045,7 +1034,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 1, 1, width-3, height-3);
else
- clearlooks_rounded_rectangle (cr, 1, 1, width-3, height-3, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 1, 1, width-3, height-3, widget->roundness, widget->corners);
cairo_pattern_add_color_stop_rgba (pattern, 0.00, shade1.r, shade1.g, shade1.b, 0.5);
cairo_pattern_add_color_stop_rgba (pattern, 0.45, shade2.r, shade2.g, shade2.b, 0.5);
@@ -1091,7 +1080,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 0, 0, width-1, height-1);
else
- clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, widget->corners);
cairo_pattern_add_color_stop_rgb (pattern, 0.00, shade1.r, shade1.g, shade1.b);
cairo_pattern_add_color_stop_rgb (pattern, 0.45, shade2.r, shade2.g, shade2.b);
@@ -1127,7 +1116,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 1, 1, width-3, height-3);
else
- clearlooks_rounded_rectangle (cr, 1, 1, width-3, height-3, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 1, 1, width-3, height-3, widget->roundness, widget->corners);
cairo_pattern_add_color_stop_rgba (pattern, 0.00, shade1.r, shade1.g, shade1.b, 0.5);
cairo_pattern_add_color_stop_rgba (pattern, 0.45, shade2.r, shade2.g, shade2.b, 0.5);
@@ -1138,7 +1127,7 @@
cairo_pattern_destroy (pattern);
}
- murrine_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
+ murrine_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, widget->corners);
murrine_set_color_rgb (cr, border);
cairo_stroke (cr);
}
Modified: trunk/src/murrine_draw_rgba.c
==============================================================================
--- trunk/src/murrine_draw_rgba.c (original)
+++ trunk/src/murrine_draw_rgba.c Fri Sep 12 11:52:01 2008
@@ -923,7 +923,7 @@
murrine_set_color_rgba (cr, &highlight, 0.5);
cairo_stroke (cr);
}
- else if (frame->shadow != MRN_SHADOW_NONE && frame->shadow != MRN_SHADOW_FLAT)
+ else if (frame->shadow != MRN_SHADOW_FLAT)
{
ShadowParameters shadow;
shadow.corners = widget->corners;
@@ -1030,7 +1030,6 @@
int x, int y, int width, int height)
{
const float RADIUS = 3.0;
- int corners;
const MurrineRGB *stripe_fill = &colors->spot[1];
const MurrineRGB *stripe_border = &colors->spot[2];
const MurrineRGB *fill = &colors->bg[widget->state_type];
@@ -1055,24 +1054,14 @@
height += RADIUS;
if (tab->gap_side == MRN_GAP_TOP)
- {
cairo_translate (cr, 0.0, -3.0); /* gap at the other side */
- corners = MRN_CORNER_BOTTOMLEFT | MRN_CORNER_BOTTOMRIGHT;
- }
- else
- corners = MRN_CORNER_TOPLEFT | MRN_CORNER_TOPRIGHT;
}
else
{
width += RADIUS;
if (tab->gap_side == MRN_GAP_LEFT)
- {
cairo_translate (cr, -3.0, 0.0); /* gap at the other side */
- corners = MRN_CORNER_TOPRIGHT | MRN_CORNER_BOTTOMRIGHT;
- }
- else
- corners = MRN_CORNER_TOPLEFT | MRN_CORNER_BOTTOMLEFT;
}
/* murrine_set_color_rgba (cr, &colors->bg[0], 0.0); */
@@ -1084,7 +1073,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 0, 0, width-1, height-1);
else
- clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, widget->corners);
/* Draw fill */
if (!widget->active)
@@ -1128,7 +1117,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 0, 0, width-1, height-1);
else
- clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, widget->corners);
cairo_pattern_add_color_stop_rgba (pattern, 0.00, shade1.r, shade1.g, shade1.b, NOTEBOOK_OPACITY);
cairo_pattern_add_color_stop_rgba (pattern, 0.45, shade2.r, shade2.g, shade2.b, NOTEBOOK_OPACITY);
@@ -1166,7 +1155,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 1, 1, width-3, height-3);
else
- clearlooks_rounded_rectangle (cr, 1, 1, width-3, height-3, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 1, 1, width-3, height-3, widget->roundness, widget->corners);
cairo_pattern_add_color_stop_rgba (pattern, 0.00, shade1.r, shade1.g, shade1.b, 0.5*NOTEBOOK_OPACITY);
cairo_pattern_add_color_stop_rgba (pattern, 0.45, shade2.r, shade2.g, shade2.b, 0.5*NOTEBOOK_OPACITY);
@@ -1212,7 +1201,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 0, 0, width-1, height-1);
else
- clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, widget->corners);
cairo_pattern_add_color_stop_rgba (pattern, 0.00, shade1.r, shade1.g, shade1.b, NOTEBOOK_OPACITY);
cairo_pattern_add_color_stop_rgba (pattern, 0.45, shade2.r, shade2.g, shade2.b, NOTEBOOK_OPACITY);
@@ -1250,7 +1239,7 @@
if (widget->roundness < 2)
cairo_rectangle (cr, 1, 1, width-3, height-3);
else
- clearlooks_rounded_rectangle (cr, 1, 1, width-3, height-3, widget->roundness, corners);
+ clearlooks_rounded_rectangle (cr, 1, 1, width-3, height-3, widget->roundness, widget->corners);
cairo_pattern_add_color_stop_rgba (pattern, 0.00, shade1.r, shade1.g, shade1.b, 0.5*NOTEBOOK_OPACITY);
cairo_pattern_add_color_stop_rgba (pattern, 0.45, shade2.r, shade2.g, shade2.b, 0.5*NOTEBOOK_OPACITY);
@@ -1261,7 +1250,7 @@
cairo_pattern_destroy (pattern);
}
- murrine_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, corners);
+ murrine_rounded_rectangle (cr, 0, 0, width-1, height-1, widget->roundness, widget->corners);
murrine_set_color_rgb (cr, border);
cairo_stroke (cr);
}
Modified: trunk/src/murrine_style.c
==============================================================================
--- trunk/src/murrine_style.c (original)
+++ trunk/src/murrine_style.c Fri Sep 12 11:52:01 2008
@@ -537,7 +537,7 @@
cairo_set_operator (cr, CAIRO_OPERATOR_SOURCE);
/* Fill the background with bg[NORMAL] */
- murrine_rounded_rectangle (cr, x, y, width, height, params.roundness, params.corners);
+ 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]);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]