murrine r113 - in trunk: . schema src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r113 - in trunk: . schema src
- Date: Fri, 2 Jan 2009 14:54:56 +0000 (UTC)
Author: acimitan
Date: Fri Jan 2 14:54:56 2009
New Revision: 113
URL: http://svn.gnome.org/viewvc/murrine?rev=113&view=rev
Log:
2009-01-02 Andrea Cimitan <andrea cimitan gmail com>
* schema/murrine.xml.in.in:
* src/murrine_draw.c (murrine_draw_progressbar_fill):
* src/murrine_draw_rgba.c (murrine_rgba_draw_progressbar_fill):
Added progressbarstyle = 2 (cells).
Modified:
trunk/ChangeLog
trunk/schema/murrine.xml.in.in
trunk/src/murrine_draw.c
trunk/src/murrine_draw_rgba.c
Modified: trunk/schema/murrine.xml.in.in
==============================================================================
--- trunk/schema/murrine.xml.in.in (original)
+++ trunk/schema/murrine.xml.in.in Fri Jan 2 14:54:56 2009
@@ -225,6 +225,9 @@
<enumeration value="1">
<label>Draw stripes</label>
</enumeration>
+ <enumeration value="2">
+ <label>Draw cells</label>
+ </enumeration>
</option>
<option type="enumeration" name="reliefstyle" default="2">
Modified: trunk/src/murrine_draw.c
==============================================================================
--- trunk/src/murrine_draw.c (original)
+++ trunk/src/murrine_draw.c Fri Jan 2 14:54:56 2009
@@ -556,6 +556,28 @@
cairo_fill (cr);
break;
}
+ case 2:
+ {
+ MurrineRGB highlight;
+ int step = 18;
+ int i;
+
+ murrine_shade (fill, widget->lightborder_shade*widget->highlight_shade, &highlight);
+
+ for (i=step; i<width-4; i+=step)
+ {
+ cairo_move_to (cr, i-0.5, 1);
+ cairo_line_to (cr, i-0.5, height-1);
+ murrine_set_color_rgba (cr, &highlight, 0.5);
+ cairo_stroke (cr);
+
+ cairo_move_to (cr, i+0.5, 1);
+ cairo_line_to (cr, i+0.5, height-1);
+ murrine_set_color_rgba (cr, &colors->spot[2], 0.25);
+ cairo_stroke (cr);
+ }
+ break;
+ }
}
cairo_restore (cr);
Modified: trunk/src/murrine_draw_rgba.c
==============================================================================
--- trunk/src/murrine_draw_rgba.c (original)
+++ trunk/src/murrine_draw_rgba.c Fri Jan 2 14:54:56 2009
@@ -512,6 +512,27 @@
cairo_fill (cr);
break;
}
+ case 2:
+ MurrineRGB highlight;
+ int step = 18;
+ int i;
+
+ murrine_shade (fill, widget->lightborder_shade*widget->highlight_shade, &highlight);
+
+ for (i=step; i<width-4; i+=step)
+ {
+ cairo_move_to (cr, i-0.5, 1);
+ cairo_line_to (cr, i-0.5, height-1);
+ murrine_set_color_rgba (cr, &highlight, 0.5*widget->mrn_gradient.rgba_opacity);
+ cairo_stroke (cr);
+
+ cairo_move_to (cr, i+0.5, 1);
+ cairo_line_to (cr, i+0.5, height-1);
+ murrine_set_color_rgba (cr, &colors->spot[2], 0.25);
+ cairo_stroke (cr);
+ }
+ break;
+ }
}
cairo_restore (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]