murrine r142 - trunk/src
- From: acimitan svn gnome org
- To: svn-commits-list gnome org
- Subject: murrine r142 - trunk/src
- Date: Sun, 22 Feb 2009 04:48:43 +0000 (UTC)
Author: acimitan
Date: Sun Feb 22 04:48:42 2009
New Revision: 142
URL: http://svn.gnome.org/viewvc/murrine?rev=142&view=rev
Log:
Indents and code reformatting
Modified:
trunk/src/murrine_draw.c
trunk/src/murrine_style.c
Modified: trunk/src/murrine_draw.c
==============================================================================
--- trunk/src/murrine_draw.c (original)
+++ trunk/src/murrine_draw.c Sun Feb 22 04:48:42 2009
@@ -1270,11 +1270,19 @@
const MurrineRGB *fill = &colors->spot[1];
const MurrineRGB *border = &colors->spot[2];
- cairo_translate (cr, x, y);
+ cairo_translate (cr, x, y);
murrine_rounded_rectangle_closed (cr, 0, 0, width, height, widget->roundness, widget->corners);
switch (menuitemstyle)
{
+ case 0:
+ murrine_set_gradient (cr, fill, widget->mrn_gradient, 0, 0, 0, height, widget->mrn_gradient.gradients, FALSE);
+ cairo_fill (cr);
+
+ murrine_set_color_rgba (cr, border, 0.15);
+ murrine_rounded_rectangle (cr, 0.5, 0.5, width-1, height-1, widget->roundness, widget->corners);
+ cairo_fill_preserve (cr);
+ break;
default:
case 1:
cairo_clip_preserve (cr);
@@ -1284,14 +1292,6 @@
widget->mrn_gradient, widget, 1, 1, width-2, height-2,
widget->roundness, widget->corners, TRUE);
break;
- case 0:
- murrine_set_gradient (cr, fill, widget->mrn_gradient, 0, 0, 0, height, widget->mrn_gradient.gradients, FALSE);
- cairo_fill (cr);
-
- murrine_set_color_rgba (cr, border, 0.15);
- murrine_rounded_rectangle (cr, 0.5, 0.5, width-1, height-1, widget->roundness, widget->corners);
- cairo_fill_preserve (cr);
- break;
case 2:
{
murrine_set_gradient (cr, fill, widget->mrn_gradient, 0, 0, 0, height, widget->mrn_gradient.gradients, FALSE);
Modified: trunk/src/murrine_style.c
==============================================================================
--- trunk/src/murrine_style.c (original)
+++ trunk/src/murrine_style.c Sun Feb 22 04:48:42 2009
@@ -2005,7 +2005,7 @@
}
}
- else if (detail && g_str_has_prefix (detail, "trough") && MRN_IS_SCALE (widget)) //CHECK_HINT (GE_HINT_SCALE)*/)
+ else if (detail && g_str_has_prefix (detail, "trough") && MRN_IS_SCALE (widget))
{
focus.type = MRN_FOCUS_SCALE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]