summaryrefslogtreecommitdiff
path: root/libs/clearlooks-newer/animation.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/animation.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/animation.c')
-rw-r--r--libs/clearlooks-newer/animation.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libs/clearlooks-newer/animation.c b/libs/clearlooks-newer/animation.c
index 2c6a6fdc42..8339ed7c19 100644
--- a/libs/clearlooks-newer/animation.c
+++ b/libs/clearlooks-newer/animation.c
@@ -159,11 +159,12 @@ add_animation (const GtkWidget *widget, gdouble stop_time)
static gboolean
update_animation_info (gpointer key, gpointer value, gpointer user_data)
{
- (void) user_data;
-
- AnimationInfo *animation_info = value;
+ AnimationInfo *animation_info;
GtkWidget *widget = key;
+ animation_info = value;
+ (void) user_data;
+
g_assert ((widget != NULL) && (animation_info != NULL));
/* remove the widget from the hash table if it is not drawable */
@@ -217,9 +218,10 @@ animation_timeout_handler (gpointer data)
static void
on_checkbox_toggle (GtkWidget *widget, gpointer data)
{
+ AnimationInfo *animation_info;
(void) data;
- AnimationInfo *animation_info = lookup_animation_info (widget);
+ animation_info = lookup_animation_info (widget);
if (animation_info != NULL)
{