summaryrefslogtreecommitdiff
path: root/libs/clearlooks-newer/clearlooks_draw_glossy.c
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-10-06 23:58:29 +0000
committerCarl Hetherington <carl@carlh.net>2009-10-06 23:58:29 +0000
commitc5e3ff16cb881af969cc55dbd27da9d4507aec7e (patch)
treeb1f075fa60d7fe60534d97152466d8211f5e8c5d /libs/clearlooks-newer/clearlooks_draw_glossy.c
parentaefcce1c99598cc8c1748940a01e2d8aa55caf85 (diff)
Fix some compiler warnings.
git-svn-id: svn://localhost/ardour2/branches/3.0@5746 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/clearlooks-newer/clearlooks_draw_glossy.c')
-rw-r--r--libs/clearlooks-newer/clearlooks_draw_glossy.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/libs/clearlooks-newer/clearlooks_draw_glossy.c b/libs/clearlooks-newer/clearlooks_draw_glossy.c
index 8a5921efc2..400851dfa1 100644
--- a/libs/clearlooks-newer/clearlooks_draw_glossy.c
+++ b/libs/clearlooks-newer/clearlooks_draw_glossy.c
@@ -33,6 +33,9 @@
#include <cairo.h>
+#ifndef M_PI
+#define M_PI 3.14159265358979323846
+#endif
static void
clearlooks_draw_glossy_gradient (cairo_t *cr,
@@ -292,12 +295,13 @@ clearlooks_glossy_draw_button (cairo_t *cr,
}
/* if (!(params->enable_glow && !params->active && !params->disabled)) */
- if (!(params->prelight && params->enable_glow && !params->active))
+ if (!(params->prelight && params->enable_glow && !params->active)) {
if (!(params->disabled))
params->style_functions->draw_inset (cr, &params->parentbg, 0, 0, width-1, height-1, params->radius+1, params->corners);
else
/*Draw a lighter inset */
clearlooks_glossy_draw_light_inset (cr, &params->parentbg, 0, 0, width-1, height-1, params->radius+1, params->corners);
+ }
cairo_translate (cr, -0.5, -0.5);
}
@@ -1090,6 +1094,10 @@ clearlooks_glossy_draw_toolbar (cairo_t *cr,
const ToolbarParameters *toolbar,
int x, int y, int width, int height)
{
+ (void) widget;
+ (void) width;
+ (void) height;
+
const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
const CairoColor *dark = &colors->shade[3];
CairoColor light;
@@ -1230,6 +1238,9 @@ clearlooks_glossy_draw_radiobutton (cairo_t *cr,
const CheckboxParameters *checkbox,
int x, int y, int width, int height)
{
+ (void) width;
+ (void) height;
+
const CairoColor *border;
const CairoColor *dot;
CairoColor shadow;