lots of transit formatting cleanups/fixups and making symbols static
authorCarsten Haitzler <raster@rasterman.com>
Mon, 20 Dec 2010 09:21:12 +0000 (09:21 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Mon, 20 Dec 2010 09:21:12 +0000 (09:21 +0000)
that should have been etc. minor cleanups - no code logic changes.

SVN revision: 55655

src/lib/elm_transit.c

index 4832eab..8b52c21 100644 (file)
@@ -60,28 +60,25 @@ struct _Elm_Transit
    Eina_List *effect_list;
    Eina_List *objs;
    Elm_Transit_Tween_Mode tween_mode;
-   unsigned int effects_pending_del;
-   int walking;
-   struct
-   {
+   struct {
       void (*func) (void *data, Elm_Transit *transit);
       void *arg;
    } del_data;
-   struct
-   {
+   struct {
       double duration;
       double begin;
       double current;
    } time;
-   struct
-   {
+   struct {
       int count;
       int current;
       Eina_Bool reverse;
    } repeat;
-   Eina_Bool auto_reverse:1;
-   Eina_Bool event_enabled:1;
-   Eina_Bool deleted:1;
+   unsigned int effects_pending_del;
+   int walking;
+   Eina_Bool auto_reverse : 1;
+   Eina_Bool event_enabled : 1;
+   Eina_Bool deleted : 1;
 };
 
 struct _Elm_Effect
@@ -89,7 +86,7 @@ struct _Elm_Effect
    void (*animation_op) (void *data, Elm_Transit *transit, double progress);
    void (*user_data_free) (void *data, Elm_Transit *transit);
    void *user_data;
-   Eina_Bool deleted:1;
+   Eina_Bool deleted : 1;
 };
 
 struct _Elm_Obj_Data
@@ -109,22 +106,18 @@ _elm_transit_object_remove_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj,
    Elm_Obj_Data *obj_data = evas_object_data_del(obj, _transit_key);
    evas_object_pass_events_set(obj, obj_data->state);
    free(obj_data);
-
    transit->objs = eina_list_remove(transit->objs, obj);
-
-   if (!transit->objs)
-     elm_transit_del(transit);
+   if (!transit->objs) elm_transit_del(transit);
 }
 
 static void
 _elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj)
 {
    Elm_Obj_Data *obj_data = evas_object_data_del(obj, _transit_key);
+   
    evas_object_pass_events_set(obj, obj_data->state);
    free(obj_data);
-
    transit->objs = eina_list_remove(transit->objs, obj);
-
    evas_object_event_callback_del(obj, EVAS_CALLBACK_DEL,
                                   _elm_transit_object_remove_cb);
 }
@@ -133,7 +126,7 @@ static void
 _elm_transit_effect_del(Elm_Transit *transit, Elm_Effect *effect, Eina_List *elist)
 {
    if (effect->user_data_free)
-     effect->user_data_free(effect->user_data, transit);
+      effect->user_data_free(effect->user_data, transit);
 
    transit->effect_list = eina_list_remove_list(transit->effect_list, elist);
    free(effect);
@@ -143,7 +136,6 @@ static void
 _remove_dead_effects(Elm_Transit *transit)
 {
    Eina_List *elist, *elist_next;
-
    Elm_Effect *effect;
 
    EINA_LIST_FOREACH_SAFE(transit->effect_list, elist, elist_next, effect)
@@ -162,18 +154,18 @@ _elm_transit_del(Elm_Transit *transit)
 {
    Eina_List *elist, *elist_next;
    Elm_Effect *effect;
-
+   
    if (transit->del_data.func)
-     transit->del_data.func(transit->del_data.arg, transit);
-
+      transit->del_data.func(transit->del_data.arg, transit);
+   
    ecore_animator_del(transit->animator);
-
+   
    EINA_LIST_FOREACH_SAFE(transit->effect_list, elist, elist_next, effect)
-     _elm_transit_effect_del(transit, effect, elist);
-
+      _elm_transit_effect_del(transit, effect, elist);
+   
    while (transit->objs)
-     _elm_transit_object_remove(transit, eina_list_data_get(transit->objs));
-
+      _elm_transit_object_remove(transit, eina_list_data_get(transit->objs));
+   
    EINA_MAGIC_SET(transit, EINA_MAGIC_NONE);
    free(transit);
 }
@@ -182,21 +174,19 @@ static void
 _transit_animate_op(Elm_Transit *transit, double progress)
 {
    Eina_List *elist;
-
    Elm_Effect *effect;
 
    transit->walking++;
    EINA_LIST_FOREACH(transit->effect_list, elist, effect)
      {
         if (transit->deleted) break;
-
         if (!effect->deleted)
-          effect->animation_op(effect->user_data, transit, progress);
+           effect->animation_op(effect->user_data, transit, progress);
      }
    transit->walking--;
-
+   
    if (transit->walking) return;
-
+   
    if (transit->deleted) _elm_transit_del(transit);
    else if (transit->effects_pending_del) _remove_dead_effects(transit);
 }
@@ -205,48 +195,46 @@ static Eina_Bool
 _animator_animate_cb(void *data)
 {
    Elm_Transit *transit = data;
-
+   double elapsed_time, progress;
+   
    transit->time.current = ecore_loop_time_get();
-   double elapsed_time = transit->time.current - transit->time.begin;
-
+   elapsed_time = transit->time.current - transit->time.begin;
+   
    if (elapsed_time > transit->time.duration)
-     elapsed_time = transit->time.duration;
-
-   double progress = elapsed_time / transit->time.duration;
+      elapsed_time = transit->time.duration;
+   
+   progress = elapsed_time / transit->time.duration;
    switch (transit->tween_mode)
      {
       case ELM_TRANSIT_TWEEN_MODE_ACCELERATE:
-         progress = 1.0 - sin((ELM_PI / 2.0) + (progress * ELM_PI / 2.0));
-         break;
+        progress = 1.0 - sin((ELM_PI / 2.0) + (progress * ELM_PI / 2.0));
+        break;
       case ELM_TRANSIT_TWEEN_MODE_DECELERATE:
-         progress = sin(progress * ELM_PI / 2.0);
-         break;
+        progress = sin(progress * ELM_PI / 2.0);
+        break;
       case ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL:
-         progress = (1.0 - cos(progress * ELM_PI)) / 2.0;
-         break;
+        progress = (1.0 - cos(progress * ELM_PI)) / 2.0;
+        break;
       default:
-         break;
-    }
-
+        break;
+     }
+   
    /* Reverse? */
-   if (transit->repeat.reverse)
-     progress = 1 - progress;
-
-   if (transit->time.duration > 0)
-     _transit_animate_op(transit, progress);
-
+   if (transit->repeat.reverse) progress = 1 - progress;
+   
+   if (transit->time.duration > 0) _transit_animate_op(transit, progress);
+   
    /* Not end. Keep going. */
-   if (elapsed_time < transit->time.duration)
-     return ECORE_CALLBACK_RENEW;
-
+   if (elapsed_time < transit->time.duration) return ECORE_CALLBACK_RENEW;
+   
    /* Repeat and reverse and time done! */
    if ((transit->repeat.current == transit->repeat.count)
-      && (!transit->auto_reverse || transit->repeat.reverse))
+       && (!transit->auto_reverse || transit->repeat.reverse))
      {
         elm_transit_del(transit);
        return ECORE_CALLBACK_CANCEL;
      }
-
+   
    /* Repeat Case */
    if (!transit->auto_reverse || transit->repeat.reverse)
      {
@@ -254,9 +242,9 @@ _animator_animate_cb(void *data)
         transit->repeat.reverse = EINA_FALSE;
      }
    else transit->repeat.reverse = EINA_TRUE;
-
+   
    transit->time.begin = ecore_loop_time_get();
-
+   
    return ECORE_CALLBACK_RENEW;
 }
 
@@ -278,9 +266,9 @@ EAPI Elm_Transit *
 elm_transit_add(double duration)
 {
    Elm_Transit *transit = ELM_NEW(Elm_Transit);
-
+   
    if (!transit) return NULL;
-
+   
    EINA_MAGIC_SET(transit, ELM_TRANSIT_MAGIC);
 
    elm_transit_tween_mode_set(transit, ELM_TRANSIT_TWEEN_MODE_LINEAR);
@@ -353,19 +341,18 @@ EAPI void
 elm_transit_effect_add(Elm_Transit *transit, void (*cb)(void *data, Elm_Transit *transit, double progress), void *data, void (*data_free_cb)(void *data, Elm_Transit *transit))
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit);
-
    EINA_SAFETY_ON_NULL_RETURN(cb);
-
    Elm_Effect *effect;
-
    Eina_List *elist;
 
    EINA_LIST_FOREACH(transit->effect_list, elist, effect)
-     if ((effect->animation_op == cb) && (effect->user_data == data)) return;
+     {
+        if ((effect->animation_op == cb) && (effect->user_data == data)) return;
+     }
 
    effect = ELM_NEW(Elm_Effect);
    if (!effect) return;
-
+   
    effect->user_data_free = data_free_cb;
    effect->animation_op = cb;
    effect->user_data = data;
@@ -395,9 +382,7 @@ EAPI void
 elm_transit_effect_del(Elm_Transit *transit, void (*cb)(void *data, Elm_Transit *transit, double progress), void *data)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit);
-
    EINA_SAFETY_ON_NULL_RETURN(cb);
-
    Eina_List *elist, *elist_next;
    Elm_Effect *effect;
 
@@ -446,9 +431,7 @@ EAPI void
 elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit);
-
    EINA_SAFETY_ON_NULL_RETURN(obj);
-
    Elm_Obj_Data *obj_data = evas_object_data_get(obj, _transit_key);
 
    if (obj_data)
@@ -456,17 +439,17 @@ elm_transit_object_add(Elm_Transit *transit, Evas_Object *obj)
         if (obj_data->transit == transit) return;
         elm_transit_object_remove(obj_data->transit, obj);
      }
-
+   
    obj_data = ELM_NEW(Elm_Obj_Data);
    obj_data->state = evas_object_pass_events_get(obj);
    obj_data->transit = transit;
    evas_object_data_set(obj, _transit_key, obj_data);
-
+   
    transit->objs = eina_list_append(transit->objs, obj);
-
+   
    if (!transit->event_enabled) 
-     evas_object_pass_events_set(obj, EINA_TRUE);
-
+      evas_object_pass_events_set(obj, EINA_TRUE);
+   
    evas_object_event_callback_add(obj, EVAS_CALLBACK_DEL,
                                   _elm_transit_object_remove_cb, transit);
 }
@@ -489,17 +472,12 @@ EAPI void
 elm_transit_object_remove(Elm_Transit *transit, Evas_Object *obj)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit);
-
    EINA_SAFETY_ON_NULL_RETURN(obj);
-
    Elm_Obj_Data *obj_data = evas_object_data_get(obj, _transit_key);
-
    if ((!obj_data) || (obj_data->transit != transit)) return;
 
    _elm_transit_object_remove(transit, obj);
-
-   if (!transit->objs)
-     elm_transit_del(transit);
+   if (!transit->objs) elm_transit_del(transit);
 }
 
 /**
@@ -514,7 +492,6 @@ EAPI const Eina_List *
 elm_transit_objects_get(const Elm_Transit *transit)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    return transit->objs;
 }
 
@@ -538,13 +515,12 @@ EAPI void
 elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit);
-
-   if (transit->event_enabled == enabled) return;
-
    Evas_Object *obj;
    Eina_List *elist;
    Elm_Obj_Data *obj_data;
 
+   if (transit->event_enabled == enabled) return;
+
    transit->event_enabled = enabled;
 
    if (enabled)
@@ -558,7 +534,7 @@ elm_transit_event_enabled_set(Elm_Transit *transit, Eina_Bool enabled)
    else
      {
         EINA_LIST_FOREACH(transit->objs, elist, obj)
-          evas_object_pass_events_set(obj, EINA_TRUE);
+           evas_object_pass_events_set(obj, EINA_TRUE);
      }
 }
 
@@ -641,7 +617,6 @@ EAPI void
 elm_transit_del_cb_set(Elm_Transit *transit, void (*cb) (void *data, Elm_Transit *transit), void *data)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit);
-
    transit->del_data.func = cb;
    transit->del_data.arg = data;
 }
@@ -664,7 +639,6 @@ EAPI void
 elm_transit_auto_reverse_set(Elm_Transit *transit, Eina_Bool reverse)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit);
-
    transit->auto_reverse = reverse;
 }
 
@@ -683,7 +657,6 @@ EAPI Eina_Bool
 elm_transit_auto_reverse_get(Elm_Transit *transit)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, EINA_FALSE);
-
    return transit->auto_reverse;
 }
 
@@ -706,7 +679,6 @@ EAPI void
 elm_transit_repeat_times_set(Elm_Transit *transit, int repeat)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit);
-
    transit->repeat.count = repeat;
    transit->repeat.current = 0;
 }
@@ -726,7 +698,6 @@ EAPI int
 elm_transit_repeat_times_get(Elm_Transit *transit)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, 0);
-
    return transit->repeat.count;
 }
 
@@ -767,7 +738,6 @@ EAPI Elm_Transit_Tween_Mode
 elm_transit_tween_mode_get(const Elm_Transit *transit)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, ELM_TRANSIT_TWEEN_MODE_LINEAR);
-
    return transit->tween_mode;
 }
 
@@ -778,39 +748,35 @@ typedef struct _Elm_Fx_Resizing Elm_Fx_Resizing;
 
 struct _Elm_Fx_Resizing
 {
-   struct _size
-     {
-        Evas_Coord w, h;
-     } from, to;
+   struct _size {
+      Evas_Coord w, h;
+   } from, to;
 };
 
-void
+static void
 _transit_effect_resizing_context_free(void *data, Elm_Transit *transit __UNUSED__)
 {
    free(data);
 }
 
-void
+static void
 _transit_effect_resizing_op(void *data, Elm_Transit *transit, double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Evas_Coord w, h;
    Evas_Object *obj;
    Eina_List *elist;
-
    Elm_Fx_Resizing *resizing = data;
 
    w = resizing->from.w + (resizing->to.w * progress);
    h = resizing->from.h + (resizing->to.h * progress);
-
+   
    EINA_LIST_FOREACH(transit->objs, elist, obj)
-     evas_object_resize(obj, w, h);
+      evas_object_resize(obj, w, h);
 }
 
-void *
+static void *
 _transit_effect_resizing_context_new(Evas_Coord from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h)
 {
    Elm_Fx_Resizing *resizing;
@@ -851,9 +817,9 @@ EAPI void *
 elm_transit_effect_resizing_add(Elm_Transit *transit, Evas_Coord from_w, Evas_Coord from_h, Evas_Coord to_w, Evas_Coord to_h)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_resizing_context_new(from_w, from_h, to_w, to_h);
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_resizing_op, effect_context,
                           _transit_effect_resizing_context_free);
@@ -874,10 +840,9 @@ struct _Elm_Fx_Translation_Node
 
 struct _Elm_Fx_Translation
 {
-   struct _position_variation
-     {
-        Evas_Coord dx, dy;
-     } from, to;
+   struct _position_variation {
+      Evas_Coord dx, dy;
+   } from, to;
    Eina_List *nodes;
 };
 
@@ -887,12 +852,10 @@ _translation_object_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, voi
    Elm_Fx_Translation *translation = data;
    Eina_List *elist;
    Elm_Fx_Translation_Node *translation_node;
-
+   
    EINA_LIST_FOREACH(translation->nodes, elist, translation_node)
      {
-        if (translation_node->obj != obj)
-          continue;
-
+        if (translation_node->obj != obj) continue;
         translation->nodes = eina_list_remove_list(translation->nodes, elist);
         free(translation_node);
         break;
@@ -907,7 +870,7 @@ _translation_nodes_build(Elm_Transit *transit, Elm_Fx_Translation *translation)
    Evas_Object *obj;
    Eina_List *data_list = NULL;
    const Eina_List *objs = elm_transit_objects_get(transit);
-
+   
    EINA_LIST_FOREACH(objs, elist, obj)
      {
         translation_node = ELM_NEW(Elm_Fx_Translation_Node);
@@ -921,9 +884,8 @@ _translation_nodes_build(Elm_Transit *transit, Elm_Fx_Translation *translation)
                                  &(translation_node->y), NULL, NULL);
         data_list = eina_list_append(data_list, translation_node);
         evas_object_event_callback_add(obj, EVAS_CALLBACK_DEL,
-                                 _translation_object_del_cb, translation);
+                                       _translation_object_del_cb, translation);
      }
-
    return data_list;
 }
 
@@ -931,7 +893,6 @@ void
 _transit_effect_translation_context_free(void *data, Elm_Transit *transit __UNUSED__)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    Elm_Fx_Translation *translation = data;
    Eina_List *elist, *elist_next;
    Elm_Fx_Translation_Node *translation_node;
@@ -940,7 +901,7 @@ _transit_effect_translation_context_free(void *data, Elm_Transit *transit __UNUS
                           elist, elist_next, translation_node)
      {
         evas_object_event_callback_del(translation_node->obj,
-                             EVAS_CALLBACK_DEL, _translation_object_del_cb);
+                                       EVAS_CALLBACK_DEL, _translation_object_del_cb);
         translation->nodes = eina_list_remove_list(translation->nodes, elist);
         free(translation_node);
      }
@@ -951,34 +912,31 @@ void
 _transit_effect_translation_op(void *data, Elm_Transit *transit, double progress __UNUSED__)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Evas_Coord x, y;
    Elm_Fx_Translation *translation = data;
    Elm_Fx_Translation_Node *translation_node;
    Eina_List *elist;
-
+   
    if (!translation->nodes)
-     translation->nodes = _translation_nodes_build(transit, translation);
-
+      translation->nodes = _translation_nodes_build(transit, translation);
+   
    EINA_LIST_FOREACH(translation->nodes, elist, translation_node)
      {
-        x = translation_node->x + translation->from.dx \
-            + (translation->to.dx * progress);
-        y = translation_node->y + translation->from.dy \
-            + (translation->to.dy * progress);
+        x = translation_node->x + translation->from.dx
+           + (translation->to.dx * progress);
+        y = translation_node->y + translation->from.dy
+           + (translation->to.dy * progress);
         evas_object_move(translation_node->obj, x, y);
      }
 }
 
-void *
+static void *
 _transit_effect_translation_context_new(Evas_Coord from_dx, Evas_Coord from_dy, Evas_Coord to_dx, Evas_Coord to_dy)
 {
    Elm_Fx_Translation *translation;
 
    translation = ELM_NEW(Elm_Fx_Translation);
-
    if (!translation) return NULL;
 
    translation->from.dx = from_dx;
@@ -1020,9 +978,9 @@ EAPI void *
 elm_transit_effect_translation_add(Elm_Transit *transit, Evas_Coord from_dx, Evas_Coord from_dy, Evas_Coord to_dx, Evas_Coord to_dy)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_translation_context_new(from_dx, from_dy, to_dx, to_dy);
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_translation_op, effect_context,
                           _transit_effect_translation_context_free);
@@ -1046,20 +1004,15 @@ _transit_effect_zoom_context_free(void *data, Elm_Transit *transit __UNUSED__)
    free(data);
 }
 
-void
+static void
 _transit_effect_zoom_op(void *data, Elm_Transit *transit , double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Evas_Object *obj;
    Eina_List *elist;
-
    Elm_Fx_Zoom *zoom = data;
-
    Evas_Map *map;
-
    Evas_Coord x, y, w, h;
 
    map = evas_map_new(4);
@@ -1069,7 +1022,7 @@ _transit_effect_zoom_op(void *data, Elm_Transit *transit , double progress)
      {
         evas_object_geometry_get(obj, &x, &y, &w, &h);
         evas_map_smooth_set(map, EINA_TRUE);
-        evas_map_util_points_populate_from_object_full(map, obj, zoom->from + \
+        evas_map_util_points_populate_from_object_full(map, obj, zoom->from +
                                                        (progress * zoom->to));
         evas_map_util_3d_perspective(map, x + (w / 2), y + (h / 2), 0, FOCAL);
         evas_object_map_set(obj, map);
@@ -1078,7 +1031,7 @@ _transit_effect_zoom_op(void *data, Elm_Transit *transit , double progress)
    evas_map_free(map);
 }
 
-void *
+static void *
 _transit_effect_zoom_context_new(float from_rate, float to_rate)
 {
    Elm_Fx_Zoom *zoom;
@@ -1120,9 +1073,9 @@ EAPI void *
 elm_transit_effect_zoom_add(Elm_Transit *transit, float from_rate, float to_rate)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_zoom_context_new(from_rate, to_rate);
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_zoom_op, effect_context,
                           _transit_effect_zoom_context_free);
@@ -1138,64 +1091,54 @@ typedef struct _Elm_Fx_Flip Elm_Fx_Flip;
 struct _Elm_Fx_Flip
 {
    Elm_Fx_Flip_Axis axis;
-   Eina_Bool cw:1;
+   Eina_Bool cw : 1;
 };
 
-void
+static void
 _transit_effect_flip_context_free(void *data, Elm_Transit *transit)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Evas_Object *front, *back;
    int i;
-
    int count = eina_list_count(transit->objs);
-   for(i = 0; i < count-1; i+=2)
+   
+   for (i = 0; i < (count - 1); i += 2)
      {
         front = eina_list_nth(transit->objs, i);
         back = eina_list_nth(transit->objs, i+1);
         evas_object_map_enable_set(front, EINA_FALSE);
         evas_object_map_enable_set(back, EINA_FALSE);
      }
-
    free(data);
 }
 
-void
+static void
 _transit_effect_flip_op(void *data, Elm_Transit *transit, double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Evas_Object *obj, *front, *back;
-   int count;
-   int i;
-
+   int count, i;
    Elm_Fx_Flip *flip = data;
-
    Evas_Map *map;
-
    float degree;
-
    Evas_Coord x, y, w, h;
 
    map = evas_map_new(4);
    if (!map) return;
 
-   if (flip->cw)
-     degree = (float)(progress * 180);
-   else
-     degree = (float)(progress * -180);
-
+   if (flip->cw) degree = (float)(progress * 180);
+   else degree = (float)(progress * -180);
+   
    count = eina_list_count(transit->objs);
-   for(i = 0; i < count-1; i+=2)
+   for (i = 0; i < (count - 1); i += 2)
      {
+        Evas_Coord half_w, half_h;
+        
         front = eina_list_nth(transit->objs, i);
         back = eina_list_nth(transit->objs, i+1);
-
+        
         if ((degree < 90) && (degree > -90))
           {
              obj = front;
@@ -1214,14 +1157,13 @@ _transit_effect_flip_op(void *data, Elm_Transit *transit, double progress)
                   evas_object_show(back);
                }
           }
-
+        
         evas_map_smooth_set(map, EINA_TRUE);
         evas_map_util_points_populate_from_object_full(map, obj, 0);
         evas_object_geometry_get(obj, &x, &y, &w, &h);
-        Evas_Coord half_w = (w / 2);
-
-        Evas_Coord half_h = (h / 2);
-
+        half_w = (w / 2);
+        half_h = (h / 2);
+        
         if (flip->axis == ELM_TRANSIT_EFFECT_FLIP_AXIS_Y)
           {
              if ((degree >= 90) || (degree <= -90))
@@ -1254,7 +1196,7 @@ _transit_effect_flip_op(void *data, Elm_Transit *transit, double progress)
    evas_map_free(map);
 }
 
-void *
+static void *
 _transit_effect_flip_context_new(Elm_Fx_Flip_Axis axis, Eina_Bool cw)
 {
    Elm_Fx_Flip *flip;
@@ -1299,9 +1241,9 @@ EAPI void *
 elm_transit_effect_flip_add(Elm_Transit *transit, Elm_Fx_Flip_Axis axis, Eina_Bool cw)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_flip_context_new(axis, cw);
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_flip_op, effect_context,
                           _transit_effect_flip_context_free);
@@ -1318,16 +1260,15 @@ struct _Elm_Fx_Resizable_Flip_Node
 {
    Evas_Object *front;
    Evas_Object *back;
-   struct _vector2d
-     {
-        float x, y;
-     } from_pos, from_size, to_pos, to_size;
+   struct _vector2d {
+      float x, y;
+   } from_pos, from_size, to_pos, to_size;
 };
 
 struct _Elm_Fx_Resizable_Flip
 {
    Eina_List *nodes;
-   Eina_Bool cw:1;
+   Eina_Bool cw : 1;
    Elm_Fx_Flip_Axis axis;
 };
 
@@ -1360,48 +1301,46 @@ _resizable_flip_nodes_build(Elm_Transit *transit, Elm_Fx_ResizableFlip *resizabl
 {
    Elm_Fx_ResizableFlip_Node *resizable_flip_node;
    Eina_List *data_list = NULL;
-
    Evas_Coord front_x, front_y, front_w, front_h;
    Evas_Coord back_x, back_y, back_w, back_h;
-
    int i, count;
 
    count = eina_list_count(transit->objs);
-   for (i = 0; i < count-1; i+=2)
-      {
-         resizable_flip_node = ELM_NEW(Elm_Fx_ResizableFlip_Node);
-         if (!resizable_flip_node)
-           {
-              eina_list_free(data_list);
-              return NULL;
-           }
-
-         resizable_flip_node->front = eina_list_nth(transit->objs, i);
-         resizable_flip_node->back = eina_list_nth(transit->objs, i+1);
-
-         evas_object_geometry_get(resizable_flip_node->front,
-                                  &front_x, &front_y, &front_w, &front_h);
-         evas_object_geometry_get(resizable_flip_node->back,
-                                  &back_x, &back_y, &back_w, &back_h);
-
-         resizable_flip_node->from_pos.x = front_x;
-         resizable_flip_node->from_pos.y = front_y;
-         resizable_flip_node->to_pos.x = back_x - front_x;
-         resizable_flip_node->to_pos.y = back_y - front_y;
-
-         resizable_flip_node->from_size.x = front_w;
-         resizable_flip_node->from_size.y = front_h;
-         resizable_flip_node->to_size.x = back_w - front_w;
-         resizable_flip_node->to_size.y = back_h - front_h;
-
-         data_list = eina_list_append(data_list, resizable_flip_node);
-
-         evas_object_event_callback_add(resizable_flip_node->back,
-             EVAS_CALLBACK_DEL, _resizable_flip_object_del_cb, resizable_flip);
-         evas_object_event_callback_add(resizable_flip_node->front,
-             EVAS_CALLBACK_DEL, _resizable_flip_object_del_cb, resizable_flip);
-      }
-
+   for (i = 0; i < (count - 1); i += 2)
+     {
+        resizable_flip_node = ELM_NEW(Elm_Fx_ResizableFlip_Node);
+        if (!resizable_flip_node)
+          {
+             eina_list_free(data_list);
+             return NULL;
+          }
+        
+        resizable_flip_node->front = eina_list_nth(transit->objs, i);
+        resizable_flip_node->back = eina_list_nth(transit->objs, i+1);
+        
+        evas_object_geometry_get(resizable_flip_node->front,
+                                 &front_x, &front_y, &front_w, &front_h);
+        evas_object_geometry_get(resizable_flip_node->back,
+                                 &back_x, &back_y, &back_w, &back_h);
+        
+        resizable_flip_node->from_pos.x = front_x;
+        resizable_flip_node->from_pos.y = front_y;
+        resizable_flip_node->to_pos.x = back_x - front_x;
+        resizable_flip_node->to_pos.y = back_y - front_y;
+        
+        resizable_flip_node->from_size.x = front_w;
+        resizable_flip_node->from_size.y = front_h;
+        resizable_flip_node->to_size.x = back_w - front_w;
+        resizable_flip_node->to_size.y = back_h - front_h;
+        
+        data_list = eina_list_append(data_list, resizable_flip_node);
+        
+        evas_object_event_callback_add(resizable_flip_node->back,
+                                       EVAS_CALLBACK_DEL, _resizable_flip_object_del_cb, resizable_flip);
+        evas_object_event_callback_add(resizable_flip_node->front,
+                                       EVAS_CALLBACK_DEL, _resizable_flip_object_del_cb, resizable_flip);
+     }
+   
    return data_list;
 }
 
@@ -1486,13 +1425,11 @@ void
 _transit_effect_resizable_flip_op(void *data, Elm_Transit *transit __UNUSED__, double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    Evas_Map *map;
    Evas_Object *obj;
    float x, y, w, h;
    float degree;
    Evas_Coord half_w, half_h;
-
    Elm_Fx_ResizableFlip *resizable_flip = data;
    Elm_Fx_ResizableFlip_Node *resizable_flip_node;
    Eina_List *elist;
@@ -1500,15 +1437,13 @@ _transit_effect_resizable_flip_op(void *data, Elm_Transit *transit __UNUSED__, d
    map = evas_map_new(4);
    if (!map) return;
 
-   if (resizable_flip->cw)
-      degree = (float)(progress * 180);
-   else
-      degree = (float)(progress * -180);
-
+   if (resizable_flip->cw) degree = (float)(progress * 180);
+   else degree = (float)(progress * -180);
+   
    if (!resizable_flip->nodes)
-     resizable_flip->nodes = _resizable_flip_nodes_build(transit,
-                                                         resizable_flip);
-
+      resizable_flip->nodes = _resizable_flip_nodes_build(transit,
+                                                          resizable_flip);
+   
    EINA_LIST_FOREACH(resizable_flip->nodes, elist, resizable_flip_node)
      {
         if ((degree < 90) && (degree > -90))
@@ -1529,25 +1464,25 @@ _transit_effect_resizable_flip_op(void *data, Elm_Transit *transit __UNUSED__, d
                   evas_object_show(resizable_flip_node->back);
                }
           }
-
+        
         evas_map_smooth_set(map, EINA_TRUE);
-
-        x = resizable_flip_node->from_pos.x + \
-            (resizable_flip_node->to_pos.x * progress);
-        y = resizable_flip_node->from_pos.y + \
-            (resizable_flip_node->to_pos.y * progress);
-        w = resizable_flip_node->from_size.x + \
-            (resizable_flip_node->to_size.x * progress);
-        h = resizable_flip_node->from_size.y + \
-            (resizable_flip_node->to_size.y * progress);
+        
+        x = resizable_flip_node->from_pos.x +
+           (resizable_flip_node->to_pos.x * progress);
+        y = resizable_flip_node->from_pos.y +
+           (resizable_flip_node->to_pos.y * progress);
+        w = resizable_flip_node->from_size.x +
+           (resizable_flip_node->to_size.x * progress);
+        h = resizable_flip_node->from_size.y +
+           (resizable_flip_node->to_size.y * progress);
         evas_map_point_coord_set(map, 0, x, y, 0);
         evas_map_point_coord_set(map, 1, x + w, y, 0);
         evas_map_point_coord_set(map, 2, x + w, y + h, 0);
         evas_map_point_coord_set(map, 3, x, y + h, 0);
-
-        half_w = (Evas_Coord) (w / 2);
-        half_h = (Evas_Coord) (h / 2);
-
+        
+        half_w = (Evas_Coord)(w / 2);
+        half_h = (Evas_Coord)(h / 2);
+        
         if (resizable_flip->axis == ELM_TRANSIT_EFFECT_FLIP_AXIS_Y)
           {
              _set_image_uv_by_axis_y(map, resizable_flip_node, degree);
@@ -1560,7 +1495,7 @@ _transit_effect_resizable_flip_op(void *data, Elm_Transit *transit __UNUSED__, d
              evas_map_util_3d_rotate(map, degree, 0,
                                      0, x + half_w, y + half_h, 0);
           }
-
+        
         evas_map_util_3d_perspective(map, x + half_w, y + half_h, 0, FOCAL);
         evas_object_map_enable_set(resizable_flip_node->front, EINA_TRUE);
         evas_object_map_enable_set(resizable_flip_node->back, EINA_TRUE);
@@ -1569,11 +1504,11 @@ _transit_effect_resizable_flip_op(void *data, Elm_Transit *transit __UNUSED__, d
    evas_map_free(map);
 }
 
-void *
+static void *
 _transit_effect_resizable_flip_context_new(Elm_Fx_Flip_Axis axis, Eina_Bool cw)
 {
    Elm_Fx_ResizableFlip *resizable_flip;
-
+   
    resizable_flip = ELM_NEW(Elm_Fx_ResizableFlip);
    if (!resizable_flip) return NULL;
 
@@ -1615,9 +1550,9 @@ EAPI void *
 elm_transit_effect_resizable_flip_add(Elm_Transit *transit, Elm_Fx_Flip_Axis axis, Eina_Bool cw)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_resizable_flip_context_new(axis, cw);
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_resizable_flip_op, effect_context,
                           _transit_effect_resizable_flip_context_free);
@@ -1694,7 +1629,6 @@ _elm_fx_wipe_hide(Evas_Map * map, Elm_Fx_Wipe_Dir dir, float x, float y, float w
       default:
          break;
      }
-
    evas_map_util_3d_perspective(map, x + (w / 2), y + (h / 2), 0, FOCAL);
 }
 
@@ -1756,17 +1690,14 @@ _elm_fx_wipe_show(Evas_Map *map, Elm_Fx_Wipe_Dir dir, float x, float y, float w,
       default:
          break;
      }
-
    evas_map_util_3d_perspective(map, x + (w / 2), y + (h / 2), 0, FOCAL);
 }
 
-void
+static void
 _transit_effect_wipe_context_free(void *data, Elm_Transit *transit)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Eina_List *elist;
    Evas_Object *obj;
    Elm_Fx_Wipe *wipe = data;
@@ -1775,8 +1706,8 @@ _transit_effect_wipe_context_free(void *data, Elm_Transit *transit)
    EINA_LIST_FOREACH(transit->objs, elist, obj)
      {
         if ((wipe->type == ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW && !reverse)
-             || (wipe->type == ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE && reverse))
-            evas_object_show(obj);
+            || (wipe->type == ELM_TRANSIT_EFFECT_WIPE_TYPE_HIDE && reverse))
+           evas_object_show(obj);
         else evas_object_hide(obj);
         evas_object_map_enable_set(obj, EINA_FALSE);
      }
@@ -1784,48 +1715,42 @@ _transit_effect_wipe_context_free(void *data, Elm_Transit *transit)
    free(wipe);
 }
 
-void
+static void
 _transit_effect_wipe_op(void *data, Elm_Transit *transit, double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Elm_Fx_Wipe *wipe = data;
-
    Evas_Map *map;
-
    Evas_Coord _x, _y, _w, _h;
-
    Eina_List *elist;
    Evas_Object *obj;
 
    map = evas_map_new(4);
    if (!map) return;
-
+   
    evas_map_smooth_set(map, EINA_TRUE);
-
+   
    EINA_LIST_FOREACH(transit->objs, elist, obj)
      {
         evas_object_geometry_get(obj, &_x, &_y, &_w, &_h);
-
+        
         if (wipe->type == ELM_TRANSIT_EFFECT_WIPE_TYPE_SHOW)
            _elm_fx_wipe_show(map, wipe->dir, _x, _y, _w, _h, (float)progress);
-
         else
            _elm_fx_wipe_hide(map, wipe->dir, _x, _y, _w, _h, (float)progress);
-
+        
         evas_object_map_enable_set(obj, EINA_TRUE);
         evas_object_map_set(obj, map);
      }
    evas_map_free(map);
 }
 
-void *
+static void *
 _transit_effect_wipe_context_new(Elm_Fx_Wipe_Type type, Elm_Fx_Wipe_Dir dir)
 {
    Elm_Fx_Wipe *wipe;
-
+   
    wipe = ELM_NEW(Elm_Fx_Wipe);
    if (!wipe) return NULL;
 
@@ -1864,9 +1789,9 @@ EAPI void *
 elm_transit_effect_wipe_add(Elm_Transit *transit, Elm_Fx_Wipe_Type type, Elm_Fx_Wipe_Dir dir)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_wipe_context_new(type, dir);
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_wipe_op, effect_context,
                           _transit_effect_wipe_context_free);
@@ -1881,52 +1806,47 @@ typedef struct _Elm_Fx_Color Elm_Fx_Color;
 
 struct _Elm_Fx_Color
 {
-   struct _unsigned_color
-     {
-        unsigned int r, g, b, a;
-     } from;
-   struct _signed_color
-     {
-        int r, g, b, a;
-     } to;
+   struct _unsigned_color {
+      unsigned int r, g, b, a;
+   } from;
+   struct _signed_color {
+      int r, g, b, a;
+   } to;
 };
 
-void
+static void
 _transit_effect_color_context_free(void *data, Elm_Transit *transit __UNUSED__)
 {
    free(data);
 }
 
-void
+static void
 _transit_effect_color_op(void *data, Elm_Transit *transit, double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Elm_Fx_Color *color = data;
    Evas_Object *obj;
    Eina_List *elist;
-
    unsigned int r, g, b, a;
-
+   
    r = (color->from.r + (int)((float)color->to.r * progress));
    g = (color->from.g + (int)((float)color->to.g * progress));
    b = (color->from.b + (int)((float)color->to.b * progress));
    a = (color->from.a + (int)((float)color->to.a * progress));
-
+   
    EINA_LIST_FOREACH(transit->objs, elist, obj)
-     evas_object_color_set(obj, r, g, b, a);
+      evas_object_color_set(obj, r, g, b, a);
 }
 
-void *
+static void *
 _transit_effect_color_context_new(unsigned int from_r, unsigned int from_g, unsigned int from_b, unsigned int from_a, unsigned int to_r, unsigned int to_g, unsigned int to_b, unsigned int to_a)
 {
    Elm_Fx_Color *color;
-
+   
    color = ELM_NEW(Elm_Fx_Color);
    if (!color) return NULL;
-
+   
    color->from.r = from_r;
    color->from.g = from_g;
    color->from.b = from_b;
@@ -1935,7 +1855,7 @@ _transit_effect_color_context_new(unsigned int from_r, unsigned int from_g, unsi
    color->to.g = to_g - from_g;
    color->to.b = to_b - from_b;
    color->to.a = to_a - from_a;
-
+   
    return color;
 }
 
@@ -1968,9 +1888,9 @@ EAPI void *
 elm_transit_effect_color_add(Elm_Transit *transit, unsigned int from_r, unsigned int from_g, unsigned int from_b, unsigned int from_a, unsigned int to_r, unsigned int to_g, unsigned int to_b, unsigned int to_a)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_color_context_new(from_r, from_g, from_b, from_a, to_r, to_g, to_b, to_a);
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_color_op, effect_context,
                           _transit_effect_color_context_free);
@@ -1990,7 +1910,7 @@ struct _Elm_Fx_Fade_Node
    struct _signed_color before_color, after_color;
    int before_alpha;
    int after_alpha;
-   Eina_Bool inversed:1;
+   Eina_Bool inversed : 1;
 };
 
 struct _Elm_Fx_Fade
@@ -2008,13 +1928,13 @@ _fade_object_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *even
    EINA_LIST_FOREACH(fade->nodes, elist, fade_node)
      {
         if (fade_node->before == obj)
-          evas_object_event_callback_del(fade_node->after,
-                             EVAS_CALLBACK_DEL, _fade_object_del_cb);
+           evas_object_event_callback_del(fade_node->after,
+                                          EVAS_CALLBACK_DEL, _fade_object_del_cb);
         else if (fade_node->after == obj)
-          evas_object_event_callback_del(fade_node->before,
-                             EVAS_CALLBACK_DEL, _fade_object_del_cb);
+           evas_object_event_callback_del(fade_node->before,
+                                          EVAS_CALLBACK_DEL, _fade_object_del_cb);
         else continue;
-
+        
         fade->nodes = eina_list_remove_list(fade->nodes, elist);
         free(fade_node);
         break;
@@ -2026,52 +1946,49 @@ _fade_nodes_build(Elm_Transit *transit, Elm_Fx_Fade *fade_data)
 {
    Elm_Fx_Fade_Node *fade;
    Eina_List *data_list = NULL;
-
-   int i; int count;
+   int i, count;
 
    count = eina_list_count(transit->objs);
-   for (i = 0; i < count-1; i+=2)
-      {
-         fade = ELM_NEW(Elm_Fx_Fade_Node);
-         if (!fade)
-           {
-              eina_list_free(data_list);
-              return NULL;
-           }
-
-         fade->before = eina_list_nth(transit->objs, i);
-         fade->after = eina_list_nth(transit->objs, i+1);
-
-         evas_object_color_get(fade->before,
-                               &fade->before_color.r, &fade->before_color.g,
-                               &fade->before_color.b, &fade->before_color.a);
-         evas_object_color_get(fade->after,
-                               &fade->after_color.r, &fade->after_color.g,
-                               &fade->after_color.b, &fade->after_color.a);
-
-         fade->before_alpha = (255 - fade->before_color.a);
-         fade->after_alpha = (255 - fade->after_color.a);
-
-         data_list = eina_list_append(data_list, fade);
-
-         evas_object_event_callback_add(fade->before,
-             EVAS_CALLBACK_DEL, _fade_object_del_cb, fade_data);
-         evas_object_event_callback_add(fade->after,
-             EVAS_CALLBACK_DEL, _fade_object_del_cb, fade_data);
-      }
-
+   for (i = 0; i < (count - 1); i += 2)
+     {
+        fade = ELM_NEW(Elm_Fx_Fade_Node);
+        if (!fade)
+          {
+             eina_list_free(data_list);
+             return NULL;
+          }
+        
+        fade->before = eina_list_nth(transit->objs, i);
+        fade->after = eina_list_nth(transit->objs, i+1);
+        
+        evas_object_color_get(fade->before,
+                              &fade->before_color.r, &fade->before_color.g,
+                              &fade->before_color.b, &fade->before_color.a);
+        evas_object_color_get(fade->after,
+                              &fade->after_color.r, &fade->after_color.g,
+                              &fade->after_color.b, &fade->after_color.a);
+        
+        fade->before_alpha = (255 - fade->before_color.a);
+        fade->after_alpha = (255 - fade->after_color.a);
+        
+        data_list = eina_list_append(data_list, fade);
+        
+        evas_object_event_callback_add(fade->before,
+                                       EVAS_CALLBACK_DEL, _fade_object_del_cb, fade_data);
+        evas_object_event_callback_add(fade->after,
+                                       EVAS_CALLBACK_DEL, _fade_object_del_cb, fade_data);
+     }
    return data_list;
 }
 
-void
+static void
 _transit_effect_fade_context_free(void *data, Elm_Transit *transit __UNUSED__)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    Elm_Fx_Fade *fade = data;
    Elm_Fx_Fade_Node *fade_node;
    Eina_List *elist, *elist_next;
-
+   
    EINA_LIST_FOREACH_SAFE(fade->nodes, elist, elist_next, fade_node)
      {
         evas_object_color_set(fade_node->before, fade_node->before_color.r,
@@ -2094,20 +2011,18 @@ _transit_effect_fade_context_free(void *data, Elm_Transit *transit __UNUSED__)
    free(fade);
 }
 
-void
+static void
 _transit_effect_fade_op(void *data, Elm_Transit *transit __UNUSED__, double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    Elm_Fx_Fade *fade = data;
    Eina_List *elist;
    Elm_Fx_Fade_Node *fade_node;
-
    float _progress;
-
+   
    if (!fade->nodes)
-     fade->nodes = _fade_nodes_build(transit, fade);
-
+      fade->nodes = _fade_nodes_build(transit, fade);
+   
    EINA_LIST_FOREACH(fade->nodes, elist, fade_node)
      {
         if (progress < 0.5)
@@ -2118,14 +2033,14 @@ _transit_effect_fade_op(void *data, Elm_Transit *transit __UNUSED__, double prog
                   evas_object_show(fade_node->before);
                   fade_node->inversed = EINA_TRUE;
                }
-
+             
              _progress = (1 - (progress * 2));
-
+             
              evas_object_color_set(fade_node->before,
                                    fade_node->before_color.r * _progress,
                                    fade_node->before_color.g * _progress,
                                    fade_node->before_color.b * _progress,
-                                   fade_node->before_color.a + \
+                                   fade_node->before_color.a +
                                    fade_node->before_alpha * (1 - _progress));
           }
         else
@@ -2136,20 +2051,20 @@ _transit_effect_fade_op(void *data, Elm_Transit *transit __UNUSED__, double prog
                   evas_object_show(fade_node->after);
                   fade_node->inversed = EINA_FALSE;
                }
-
+             
              _progress = ((progress - 0.5) * 2);
-
+             
              evas_object_color_set(fade_node->after,
                                    fade_node->after_color.r * _progress,
                                    fade_node->after_color.g * _progress,
                                    fade_node->after_color.b * _progress,
-                                   fade_node->after_color.a + \
+                                   fade_node->after_color.a +
                                    fade_node->after_alpha * (1 - _progress));
           }
      }
 }
 
-void *
+static void *
 _transit_effect_fade_context_new(void)
 {
    Elm_Fx_Fade *fade;
@@ -2188,9 +2103,9 @@ EAPI void *
 elm_transit_effect_fade_add(Elm_Transit *transit)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
+   
    void *effect_context = _transit_effect_fade_context_new();
-   if(!effect_context) return NULL;
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_fade_op, effect_context,
                           _transit_effect_fade_context_free);
@@ -2222,17 +2137,17 @@ _blend_object_del_cb(void *data, Evas *e __UNUSED__, Evas_Object *obj, void *eve
    Elm_Fx_Blend *blend = data;
    Eina_List *elist;
    Elm_Fx_Blend_Node *blend_node;
-
+   
    EINA_LIST_FOREACH(blend->nodes, elist, blend_node)
      {
         if (blend_node->after == obj)
-          evas_object_event_callback_del(blend_node->before,
-                             EVAS_CALLBACK_DEL, _blend_object_del_cb);
+           evas_object_event_callback_del(blend_node->before,
+                                          EVAS_CALLBACK_DEL, _blend_object_del_cb);
         else if (blend_node->before == obj)
-          evas_object_event_callback_del(blend_node->after,
-                             EVAS_CALLBACK_DEL, _blend_object_del_cb);
+           evas_object_event_callback_del(blend_node->after,
+                                          EVAS_CALLBACK_DEL, _blend_object_del_cb);
         else continue;
-
+        
         blend->nodes = eina_list_remove_list(blend->nodes, elist);
         free(blend_node);
         break;
@@ -2244,37 +2159,36 @@ _blend_nodes_build(Elm_Transit *transit, Elm_Fx_Blend *blend)
 {
    Elm_Fx_Blend_Node *blend_node;
    Eina_List *data_list = NULL;
-
    int i, count;
 
    count = eina_list_count(transit->objs);
-   for (i = 0; i < count-1; i+=2)
+   for (i = 0; i < (count - 1); i += 2)
      {
-         blend_node = ELM_NEW(Elm_Fx_Blend_Node);
-         if (!blend_node)
-           {
-              eina_list_free(data_list);
-              return NULL;
-           }
-
-         blend_node->before = eina_list_nth(transit->objs, i);
-         blend_node->after = eina_list_nth(transit->objs, i+1);
-         evas_object_show(blend_node->before);
-         evas_object_show(blend_node->after);
-
-         evas_object_color_get(blend_node->before, &blend_node->from.r,
-                               &blend_node->from.g, &blend_node->from.b,
-                               &blend_node->from.a);
-         evas_object_color_get(blend_node->after, &blend_node->to.r,
-                               &blend_node->to.g, &blend_node->to.b,
-                               &blend_node->to.a);
-
-         data_list = eina_list_append(data_list, blend_node);
-
-         evas_object_event_callback_add(blend_node->before,
-             EVAS_CALLBACK_DEL, _blend_object_del_cb, blend);
-         evas_object_event_callback_add(blend_node->after,
-             EVAS_CALLBACK_DEL, _blend_object_del_cb, blend);
+        blend_node = ELM_NEW(Elm_Fx_Blend_Node);
+        if (!blend_node)
+          {
+             eina_list_free(data_list);
+             return NULL;
+          }
+        
+        blend_node->before = eina_list_nth(transit->objs, i);
+        blend_node->after = eina_list_nth(transit->objs, i + 1);
+        evas_object_show(blend_node->before);
+        evas_object_show(blend_node->after);
+        
+        evas_object_color_get(blend_node->before, &blend_node->from.r,
+                              &blend_node->from.g, &blend_node->from.b,
+                              &blend_node->from.a);
+        evas_object_color_get(blend_node->after, &blend_node->to.r,
+                              &blend_node->to.g, &blend_node->to.b,
+                              &blend_node->to.a);
+        
+        data_list = eina_list_append(data_list, blend_node);
+        
+        evas_object_event_callback_add(blend_node->before,
+                                       EVAS_CALLBACK_DEL, _blend_object_del_cb, blend);
+        evas_object_event_callback_add(blend_node->after,
+                                       EVAS_CALLBACK_DEL, _blend_object_del_cb, blend);
      }
    return data_list;
 }
@@ -2283,7 +2197,6 @@ void
 _transit_effect_blend_context_free(void *data, Elm_Transit *transit __UNUSED__)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    Elm_Fx_Blend *blend = data;
    Elm_Fx_Blend_Node *blend_node;
    Eina_List *elist, *elist_next;
@@ -2296,18 +2209,18 @@ _transit_effect_blend_context_free(void *data, Elm_Transit *transit __UNUSED__)
         evas_object_color_set(blend_node->after, blend_node->to.r,
                               blend_node->to.g, blend_node->to.b,
                               blend_node->to.a);
-
+        
         if (elm_transit_auto_reverse_get(transit))
-          evas_object_hide(blend_node->after);
+           evas_object_hide(blend_node->after);
         else
-          evas_object_hide(blend_node->before);
-
+           evas_object_hide(blend_node->before);
+        
         blend->nodes = eina_list_remove_list(blend->nodes, elist);
-
+        
         evas_object_event_callback_del(blend_node->before,
-                             EVAS_CALLBACK_DEL, _blend_object_del_cb);
+                                       EVAS_CALLBACK_DEL, _blend_object_del_cb);
         evas_object_event_callback_del(blend_node->after,
-                             EVAS_CALLBACK_DEL, _blend_object_del_cb);
+                                       EVAS_CALLBACK_DEL, _blend_object_del_cb);
         free(blend_node);
      }
    free(data);
@@ -2317,16 +2230,13 @@ void
 _transit_effect_blend_op(void *data, Elm_Transit *transit, double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Elm_Fx_Blend *blend = data;
    Elm_Fx_Blend_Node *blend_node;
    Eina_List *elist;
 
-   if (!blend->nodes)
-     blend->nodes = _blend_nodes_build(transit, blend);
-
+   if (!blend->nodes) blend->nodes = _blend_nodes_build(transit, blend);
+   
    EINA_LIST_FOREACH(blend->nodes, elist, blend_node)
      {
         evas_object_color_set(blend_node->before,
@@ -2342,14 +2252,13 @@ _transit_effect_blend_op(void *data, Elm_Transit *transit, double progress)
      }
 }
 
-void *
+static void *
 _transit_effect_blend_context_new(void)
 {
    Elm_Fx_Blend *blend;
-
+   
    blend = ELM_NEW(Elm_Fx_Blend);
    if (!blend) return NULL;
-
    return blend;
 }
 
@@ -2383,9 +2292,9 @@ EAPI void *
 elm_transit_effect_blend_add(Elm_Transit *transit)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_blend_context_new();
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_blend_op, effect_context,
                           _transit_effect_blend_context_free);
@@ -2404,29 +2313,22 @@ struct _Elm_Fx_Rotation
    float from, to;
 };
 
-void
+static void
 _transit_effect_rotation_context_free(void *data, Elm_Transit *transit __UNUSED__)
 {
    free(data);
 }
 
-void
+static void
 _transit_effect_rotation_op(void *data, Elm_Transit *transit, double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Elm_Fx_Rotation *rotation = data;
-
    Evas_Map *map;
-
    Evas_Coord x, y, w, h;
-
    float degree;
-
    float half_w, half_h;
-
    Eina_List *elist;
    Evas_Object *obj;
 
@@ -2440,14 +2342,12 @@ _transit_effect_rotation_op(void *data, Elm_Transit *transit, double progress)
         evas_map_util_points_populate_from_object_full(map, obj, 0);
         degree = rotation->from + (float)(progress * rotation->to);
 
-        if (!rotation->cw)
-           degree *= -1;
-
+        if (!rotation->cw) degree *= -1;
+        
         evas_object_geometry_get(obj, &x, &y, &w, &h);
 
-        half_w = (float)w *0.5;
-
-        half_h = (float)h *0.5;
+        half_w = (float)w * 0.5;
+        half_h = (float)h * 0.5;
 
         evas_map_util_3d_rotate(map, 0, 0, degree, x + half_w, y + half_h, 0);
         evas_map_util_3d_perspective(map, x + half_w, y + half_h, 0, FOCAL);
@@ -2457,7 +2357,7 @@ _transit_effect_rotation_op(void *data, Elm_Transit *transit, double progress)
    evas_map_free(map);
 }
 
-void *
+static void *
 _transit_effect_rotation_context_new(float from_degree, float to_degree, Eina_Bool cw)
 {
    Elm_Fx_Rotation *rotation;
@@ -2502,9 +2402,9 @@ EAPI void *
 elm_transit_effect_rotation_add(Elm_Transit *transit, float from_degree, float to_degree, Eina_Bool cw)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_rotation_context_new(from_degree, to_degree, cw);
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_rotation_op, effect_context,
                           _transit_effect_rotation_context_free);
@@ -2522,70 +2422,60 @@ struct _Elm_Fx_Image_Animation
    Eina_List *images;
 };
 
-void
+static void
 _transit_effect_image_animation_context_free(void *data, Elm_Transit *transit __UNUSED__)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    Elm_Fx_Image_Animation *image_animation = data;
-
    const char *image;
    Eina_List *elist, *elist_next;
 
    EINA_LIST_FOREACH_SAFE(image_animation->images, elist, elist_next, image)
      {
-        image_animation->images = \
-                       eina_list_remove_list(image_animation->images, elist);
+        image_animation->images =
+           eina_list_remove_list(image_animation->images, elist);
         eina_stringshare_del(image);
      }
 
    free(data);
 }
 
-void
+static void
 _transit_effect_image_animation_op(void *data, Elm_Transit *transit, double progress)
 {
    EINA_SAFETY_ON_NULL_RETURN(data);
-
    EINA_SAFETY_ON_NULL_RETURN(transit);
-
    Eina_List *elist;
    Evas_Object *obj;
    const char *type;
-
-   type = eina_stringshare_add("icon");
-
-   Elm_Fx_Image_Animation *image_animation = (Elm_Fx_Image_Animation *) data;
-
+   Elm_Fx_Image_Animation *image_animation = data;
    unsigned int count = 0;
-   int len = eina_list_count(image_animation->images);
-
-   if (!len)
-      count = floor(progress * len);
-   else
-      count = floor(progress * (len - 1));
+   int len;
 
+   type = eina_stringshare_add("icon");
+   len = eina_list_count(image_animation->images);
+   
+   if (!len) count = floor(progress * len);
+   else count = floor(progress * (len - 1));
+   
    EINA_LIST_FOREACH(transit->objs, elist, obj)
      {
         if (elm_widget_type_check(obj, type))
-          elm_icon_file_set(obj,
-                          eina_list_nth(image_animation->images, count), NULL);
+           elm_icon_file_set(obj,
+                             eina_list_nth(image_animation->images, count), NULL);
      }
 
    eina_stringshare_del(type);
 }
 
-void *
+static void *
 _transit_effect_image_animation_context_new(Eina_List *images)
 {
    Elm_Fx_Image_Animation *image_animation;
-
    image_animation = ELM_NEW(Elm_Fx_Image_Animation);
 
    if (!image_animation) return NULL;
-
    image_animation->images = images;
-
    return image_animation;
 }
 
@@ -2631,9 +2521,9 @@ EAPI void *
 elm_transit_effect_image_animation_add(Elm_Transit *transit, Eina_List *images)
 {
    ELM_TRANSIT_CHECK_OR_RETURN(transit, NULL);
-
    void *effect_context = _transit_effect_image_animation_context_new(images);
-   if(!effect_context) return NULL;
+   
+   if (!effect_context) return NULL;
    elm_transit_effect_add(transit, 
                           _transit_effect_image_animation_op, effect_context,
                           _transit_effect_image_animation_context_free);