summaryrefslogtreecommitdiff
path: root/libs/clearlooks-newer/clearlooks_draw_glossy.c
diff options
context:
space:
mode:
authorJohn Emmas <johne53@tiscali.co.uk>2013-08-27 17:07:53 +0100
committerJohn Emmas <johne53@tiscali.co.uk>2013-08-27 17:07:53 +0100
commit909fcf4b2df24e4c0794c9af2c00ae9476040548 (patch)
treefea50a6403aaa95178c34595176fefdeb8a64f88 /libs/clearlooks-newer/clearlooks_draw_glossy.c
parent060c56cc3fa05201894d56e30cc36e853a958472 (diff)
'libs/clearlooks-newer' - Clearlooks needs to be buildable as conventional 'C' but many 'C' compilers require that variables be declared at the top of each function. Move declarations as necessary to accommodate this.
Diffstat (limited to 'libs/clearlooks-newer/clearlooks_draw_glossy.c')
-rw-r--r--libs/clearlooks-newer/clearlooks_draw_glossy.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/libs/clearlooks-newer/clearlooks_draw_glossy.c b/libs/clearlooks-newer/clearlooks_draw_glossy.c
index 62f17f3f95..0e573e1b53 100644
--- a/libs/clearlooks-newer/clearlooks_draw_glossy.c
+++ b/libs/clearlooks-newer/clearlooks_draw_glossy.c
@@ -1088,13 +1088,16 @@ clearlooks_glossy_draw_toolbar (cairo_t *cr,
const ToolbarParameters *toolbar,
int x, int y, int width, int height)
{
+ CairoColor light;
+ const CairoColor *dark;
+
+ const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
+ dark = &colors->shade[3];
+
(void) widget;
(void) width;
(void) height;
-
- const CairoColor *fill = &colors->bg[GTK_STATE_NORMAL];
- const CairoColor *dark = &colors->shade[3];
- CairoColor light;
+
ge_shade_color (fill, 1.1, &light);
cairo_set_line_width (cr, 1.0);
@@ -1232,9 +1235,6 @@ 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;
@@ -1243,6 +1243,9 @@ clearlooks_glossy_draw_radiobutton (cairo_t *cr,
gboolean inconsistent;
gboolean draw_bullet = (checkbox->shadow_type == GTK_SHADOW_IN);
+ (void) width;
+ (void) height;
+
inconsistent = (checkbox->shadow_type == GTK_SHADOW_ETCHED_IN);
draw_bullet |= inconsistent;