summaryrefslogtreecommitdiff
path: root/libs/clearlooks-newer/clearlooks_rc_style.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_rc_style.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_rc_style.c')
-rw-r--r--libs/clearlooks-newer/clearlooks_rc_style.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/libs/clearlooks-newer/clearlooks_rc_style.c b/libs/clearlooks-newer/clearlooks_rc_style.c
index c9a30ff6b4..b54abebb4d 100644
--- a/libs/clearlooks-newer/clearlooks_rc_style.c
+++ b/libs/clearlooks-newer/clearlooks_rc_style.c
@@ -173,9 +173,9 @@ clearlooks_gtk2_rc_parse_boolean (GtkSettings *settings,
GScanner *scanner,
gboolean *retval)
{
- (void) settings;
-
guint token;
+
+ (void) settings;
token = g_scanner_get_next_token(scanner);
token = g_scanner_get_next_token(scanner);
@@ -198,10 +198,10 @@ clearlooks_gtk2_rc_parse_color(GtkSettings *settings,
GScanner *scanner,
GdkColor *color)
{
- (void) settings;
-
guint token;
+ (void) settings;
+
/* Skip 'blah_color' */
token = g_scanner_get_next_token(scanner);
@@ -217,10 +217,10 @@ clearlooks_gtk2_rc_parse_double (GtkSettings *settings,
GScanner *scanner,
gdouble *val)
{
- (void) settings;
-
guint token;
+ (void) settings;
+
/* Skip 'blah' */
token = g_scanner_get_next_token(scanner);
@@ -242,10 +242,10 @@ clearlooks_gtk2_rc_parse_int (GtkSettings *settings,
GScanner *scanner,
guint8 *progressbarstyle)
{
- (void) settings;
-
guint token;
+ (void) settings;
+
/* Skip 'sunkenmenubar' */
token = g_scanner_get_next_token(scanner);
@@ -267,10 +267,10 @@ clearlooks_gtk2_rc_parse_style (GtkSettings *settings,
GScanner *scanner,
ClearlooksStyles *style)
{
- (void) settings;
-
guint token;
+ (void) settings;
+
g_assert (CL_NUM_STYLES == CL_STYLE_GUMMY + 1); /* so that people don't forget ;-) */
/* Skip 'style' */
@@ -308,10 +308,10 @@ clearlooks_gtk2_rc_parse_dummy (GtkSettings *settings,
GScanner *scanner,
gchar *name)
{
- (void) settings;
-
guint token;
+ (void) settings;
+
/* Skip option */
token = g_scanner_get_next_token (scanner);