[E-devel] [PATCH] e17: add thinkpad to temperature module

2011-01-16 Thread Lars Munch
This adds thinkpad support to the temperature module. The temperature is
accessible through the thinkpad_acpi kernel module.

Signed-off-by: Lars Munch l...@segv.dk
---
 src/modules/temperature/e_mod_main_private.h |3 ++-
 src/modules/temperature/tempget.c|9 +
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/modules/temperature/e_mod_main_private.h 
b/src/modules/temperature/e_mod_main_private.h
index 626b9bd..7159292 100644
--- a/src/modules/temperature/e_mod_main_private.h
+++ b/src/modules/temperature/e_mod_main_private.h
@@ -11,7 +11,8 @@ typedef enum _Sensor_Type
SENSOR_TYPE_LINUX_ACPI,
SENSOR_TYPE_LINUX_PCI,
SENSOR_TYPE_LINUX_PBOOK,
-   SENSOR_TYPE_LINUX_INTELCORETEMP
+   SENSOR_TYPE_LINUX_INTELCORETEMP,
+   SENSOR_TYPE_LINUX_THINKPAD
 } Sensor_Type;
 
 #endif
diff --git a/src/modules/temperature/tempget.c 
b/src/modules/temperature/tempget.c
index b98b6ab..99495a3 100644
--- a/src/modules/temperature/tempget.c
+++ b/src/modules/temperature/tempget.c
@@ -125,6 +125,11 @@ init(void)
  sensor_type = SENSOR_TYPE_LINUX_INTELCORETEMP;
  sensor_name = strdup(dummy);
   }
+ else if 
(ecore_file_exists(/sys/devices/platform/thinkpad_hwmon/temp1_input))
+   {
+  sensor_type = SENSOR_TYPE_LINUX_THINKPAD;
+  sensor_name = strdup(dummy);
+   }
 else
   {
  // try the i2c bus
@@ -217,6 +222,9 @@ init(void)
   case SENSOR_TYPE_LINUX_INTELCORETEMP:
 sensor_path = 
strdup(/sys/devices/platform/coretemp.0/temp1_input);
 break;
+  case SENSOR_TYPE_LINUX_THINKPAD:
+sensor_path = 
strdup(/sys/devices/platform/thinkpad_hwmon/temp1_input);
+break;
   case SENSOR_TYPE_LINUX_I2C:
 therms = ecore_file_ls(/sys/bus/i2c/devices);
 
@@ -330,6 +338,7 @@ check(void)
break;
   case SENSOR_TYPE_LINUX_INTELCORETEMP:
   case SENSOR_TYPE_LINUX_I2C:
+  case SENSOR_TYPE_LINUX_THINKPAD:
f = fopen(sensor_path, r);
if (f)
  {
-- 
1.7.2.3


--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] [PATCH] e17: add thinkpad to temperature module

2011-01-16 Thread Mike Blumenkrantz
On Sun, 16 Jan 2011 13:51:56 +0100
Lars Munch l...@segv.dk wrote:

 This adds thinkpad support to the temperature module. The temperature is
 accessible through the thinkpad_acpi kernel module.
 
 Signed-off-by: Lars Munch l...@segv.dk
in

-- 
Mike Blumenkrantz
Zentific: NULL pointer dereferences now 50% off!

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] patch for ecore function used to change the backlight property

2011-01-16 Thread mathieu . taillefumier
Hello,

I wrote three additional functions allowing us yo change the backlight 
properties of the screes supporting it. I discover that the functions are 
already declared in the headers files but the code was not added so far. The 
patch is simple and should be directly applied in the directory 
src/lib/ecore_x/xlib after reviewing it. I am open for comments and suggestions 
for improving these three functions. 

I should indicate that I plan to create a module for e17 which controls the 
backlight properties but in order to do that I would like to ask a question. I 
would like to add a timer in this module in order decrease the backlight to a 
lower value after 10 seconds of activity for instance. For course the timer 
should be deactivited when the keyboard or the mouse are used but unfortunately 
I do not know how to create such timer. 

cheers

MathieuIndex: ecore_x_randr_12.c
===
--- ecore_x_randr_12.c	(revision 56191)
+++ ecore_x_randr_12.c	(working copy)
@@ -1902,3 +1902,135 @@
  Ecore_X_Randr_Unset);
 #endif
 }
+
+EAPI void
+ecore_x_randr_screen_backlight_level_set(Ecore_X_Window root, double level)
+{
+#ifdef ECORE_XRANDR
+   RANDR_CHECK_1_2_RET();
+   
+   /* 
+*  maybe move this in the init part the module.
+*  Initialize it if not already initialized 
+*/
+
+   if(_backlight == None)
+ _backlight = XInternAtom (_ecore_x_disp, RANDR_PROPERTY_BACKLIGHT, True);
+
+   // Clearly the server does not support it.
+   if(_backlight == None)
+ {
+   ERR(Backlight property is not suppported on this server);
+   return;
+ }
+   
+   /* get the ressources */
+   XRRScreenResources  *resources = _ecore_x_randr_get_screen_resources (_ecore_x_disp, root);
+   
+   int o;
+  
+   if (!resources) return;
+   for (o = 0; o  resources-noutput; o++)
+ {
+   Ecore_X_Randr_Output	output = resources-outputs[o];
+   if (ecore_x_randr_output_backlight_level_get(root, output) != -1)
+	 {
+	   ecore_x_randr_output_backlight_level_set(root, output, level);
+	 }
+ }
+   XRRFreeScreenResources (resources);
+#endif  
+}
+
+/*
+ * @param root window which's screen should be queried 
+ * @param output from which the backlight level should retrieved 
+ * @return the backlight level 
+ */
+
+
+EAPI double
+ecore_x_randr_output_backlight_level_get(Ecore_X_Window root,
+ Ecore_X_Randr_Output output)
+{
+#ifdef ECORE_XRANDR
+   RANDR_CHECK_1_2_RET(-1);  
+   unsigned long   nitems;
+   unsigned long   bytes_after;
+   unsigned char   *prop;
+   Atom	actual_type;
+   int	actual_format;
+   long	value;
+   
+   if(_backlight == None)
+ _backlight = XInternAtom (_ecore_x_disp, RANDR_PROPERTY_BACKLIGHT, True);
+   if(_backlight == None)
+ {
+   ERR(Backlight property is not suppported on this server);
+   return -1;
+ }
+
+   if(!_ecore_x_randr_output_validate(root, output))
+ return -1;
+   
+   if (XRRGetOutputProperty (_ecore_x_disp, output, _backlight,
+			 0, 4, False, False, None,
+			 actual_type, actual_format,
+			 nitems, bytes_after, prop) != Success) {
+ WRN(Backlight not supported on this output);
+ return -1;
+   }
+   
+   if (actual_type != XA_INTEGER || nitems != 1 || actual_format != 32)
+ value = -1;
+   else
+ value = *((long *) prop);
+   free (prop);
+   return value;
+#else
+   return -1;
+#endif
+}
+
+/*
+ * @param root window which's screen should be queried
+ * @param output that should be set
+ * @param level for which the backlight should be set
+ * @return EINA_TRUE in case of success 
+ */
+
+EAPI Eina_Bool
+ecore_x_randr_output_backlight_level_set(Ecore_X_Window root,
+ Ecore_X_Randr_Output output,
+ double level)
+{
+#ifdef ECORE_XRANDR
+  RANDR_CHECK_1_2_RET(EINA_FALSE);
+  if(!_ecore_x_randr_output_validate(root, output))
+return;
+  
+  XRRPropertyInfo *info =  XRRQueryOutputProperty (_ecore_x_disp, output, _backlight);
+  if (info)
+{
+  if (info-range  info-num_values == 2)
+	{
+	  double min = info-values[0];
+	  double max = info-values[1];
+	  double tmp = (level * (max - min) / 100) + min;
+	  long new = tmp;
+	  if (new  max) new = max;
+	  if (new  min) new = min;
+	  
+	  XRRChangeOutputProperty (_ecore_x_disp, output, _backlight, XA_INTEGER, 32,
+   PropModeReplace, (unsigned char *) new, 1);
+	  XFlush (_ecore_x_disp);
+	}
+  free(info);  
+  return EINA_TRUE;
+}
+  
+  return EINA_FALSE;
+#else
+  return EINA_FALSE;
+#endif
+}
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and 

Re: [E-devel] patch for ecore function used to change the backlight property

2011-01-16 Thread Mike Blumenkrantz
On Sun, 16 Jan 2011 16:18:10 +0100 (CET)
mathieu.taillefum...@free.fr wrote:

 Hello,
 
 I wrote three additional functions allowing us yo change the backlight
 properties of the screes supporting it. I discover that the functions are
 already declared in the headers files but the code was not added so far. The
 patch is simple and should be directly applied in the directory
 src/lib/ecore_x/xlib after reviewing it. I am open for comments and
 suggestions for improving these three functions. 
 
 I should indicate that I plan to create a module for e17 which controls the
 backlight properties but in order to do that I would like to ask a question.
 I would like to add a timer in this module in order decrease the backlight to
 a lower value after 10 seconds of activity for instance. For course the timer
 should be deactivited when the keyboard or the mouse are used but
 unfortunately I do not know how to create such timer. 
 
 cheers
 
 Mathieu
code freeze, try back later.

-- 
Mike Blumenkrantz
Zentific: NULL pointer dereferences now 50% off!

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] patch for ecore function used to change the backlight property

2011-01-16 Thread Vincent Torri


On Sun, 16 Jan 2011, Mike Blumenkrantz wrote:

 On Sun, 16 Jan 2011 16:18:10 +0100 (CET)
 mathieu.taillefum...@free.fr wrote:

 Hello,

 I wrote three additional functions allowing us yo change the backlight
 properties of the screes supporting it. I discover that the functions are
 already declared in the headers files but the code was not added so far. The
 patch is simple and should be directly applied in the directory
 src/lib/ecore_x/xlib after reviewing it. I am open for comments and
 suggestions for improving these three functions.

 I should indicate that I plan to create a module for e17 which controls the
 backlight properties but in order to do that I would like to ask a question.
 I would like to add a timer in this module in order decrease the backlight to
 a lower value after 10 seconds of activity for instance. For course the timer
 should be deactivited when the keyboard or the mouse are used but
 unfortunately I do not know how to create such timer.

 cheers

 Mathieu
 code freeze, try back later.

that is, wait one week :p

Vincent

--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] patch for ecore function used to change the backlight property

2011-01-16 Thread mathieu . taillefumier
I will wait then. Resubmission in one week. 

Mathieu
- Mail Original -
De: Vincent Torri vto...@univ-evry.fr
À: Mike Blumenkrantz m...@zentific.com
Cc: mathieu taillefumier mathieu.taillefum...@free.fr, 
enlightenment-devel@lists.sourceforge.net
Envoyé: Dimanche 16 Janvier 2011 16h42:10 GMT +01:00 Amsterdam / Berlin / Berne 
/ Rome / Stockholm / Vienne
Objet: Re: [E-devel] patch for ecore function used to change the backlight 
property



On Sun, 16 Jan 2011, Mike Blumenkrantz wrote:

 On Sun, 16 Jan 2011 16:18:10 +0100 (CET)
 mathieu.taillefum...@free.fr wrote:

 Hello,

 I wrote three additional functions allowing us yo change the backlight
 properties of the screes supporting it. I discover that the functions are
 already declared in the headers files but the code was not added so far. The
 patch is simple and should be directly applied in the directory
 src/lib/ecore_x/xlib after reviewing it. I am open for comments and
 suggestions for improving these three functions.

 I should indicate that I plan to create a module for e17 which controls the
 backlight properties but in order to do that I would like to ask a question.
 I would like to add a timer in this module in order decrease the backlight to
 a lower value after 10 seconds of activity for instance. For course the timer
 should be deactivited when the keyboard or the mouse are used but
 unfortunately I do not know how to create such timer.

 cheers

 Mathieu
 code freeze, try back later.

that is, wait one week :p



--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: maxerba IN trunk/E-MODULES-EXTRA: deskshow everything-mpris everything-mpris/po everything-pidgin everything-pidgin/po everything-tracker everything-tracker/po everything-wallpape

2011-01-16 Thread Leif Middelschulte
Hi,

nice to see that the German translations get some love as well.
See a fix for a typo within context.

BR,

Leif

2011/1/16 Enlightenment SVN no-re...@enlightenment.org:
 Log:
 updating german translations

 Author:       maxerba
 Date:         2011-01-16 11:41:28 -0800 (Sun, 16 Jan 2011)
 New Revision: 56199
 Trac:         http://trac.enlightenment.org/e/changeset/56199

 Added:
  trunk/E-MODULES-EXTRA/everything-mpris/po/de.po 
 trunk/E-MODULES-EXTRA/everything-pidgin/po/de.po 
 trunk/E-MODULES-EXTRA/everything-tracker/po/de.po 
 trunk/E-MODULES-EXTRA/everything-wallpaper/po/de.po 
 trunk/E-MODULES-EXTRA/everything-websearch/po/de.po
 Modified:
  trunk/E-MODULES-EXTRA/deskshow/module.desktop.in 
 trunk/E-MODULES-EXTRA/everything-mpris/module.desktop.in 
 trunk/E-MODULES-EXTRA/everything-mpris/po/LINGUAS 
 trunk/E-MODULES-EXTRA/everything-pidgin/module.desktop.in 
 trunk/E-MODULES-EXTRA/everything-pidgin/po/LINGUAS 
 trunk/E-MODULES-EXTRA/everything-tracker/module.desktop.in 
 trunk/E-MODULES-EXTRA/everything-tracker/po/LINGUAS 
 trunk/E-MODULES-EXTRA/everything-wallpaper/module.desktop.in 
 trunk/E-MODULES-EXTRA/everything-wallpaper/po/LINGUAS 
 trunk/E-MODULES-EXTRA/everything-websearch/module.desktop.in 
 trunk/E-MODULES-EXTRA/everything-websearch/po/LINGUAS

 Modified: trunk/E-MODULES-EXTRA/deskshow/module.desktop.in
 ===
 --- trunk/E-MODULES-EXTRA/deskshow/module.desktop.in    2011-01-16 19:10:44 
 UTC (rev 56198)
 +++ trunk/E-MODULES-EXTRA/deskshow/module.desktop.in    2011-01-16 19:41:28 
 UTC (rev 56199)
 @@ -2,19 +2,21 @@
  Type=Link
  Name=Deskshow
  Name[cs]=Zobrazit plochu
 +Name[de]=Arbeitsflächenzeiger
 +Name[el]=Εμφάνιση Επιφάνειας
  Name[eo]=LabortabloVidigilo
 +Name[fr]=Bureau
  Name[hu]=Munkaasztal megjelenítése
 -Name[fr]=Bureau
 -Name[el]=Εμφάνιση Επιφάνειας
  Name[pt]=Mostrar o ambiente de trabalho
  Icon=e-module-deskshow
  X-Enlightenment-ModuleType=utils
  Comment=Gadget to allow you to quickly uncover your desktop.
  Comment[cs]=Umožňuje rychle odkrýt plochu.
 +Comment[de]=Helfer zum schnellen Freilegen der Arbeitsfläsche.
Arbeitsfläsche - Arbeitsfläche
 +Comment[el]=Ένα συστατικό για την γρήγορη αποκάλυψη της επιφάνειας εργασίας.
  Comment[eo]=Rapide malkovri sian labortablon.
 +Comment[fr]=Un gadget permettant de découvrir rapidement votre bureau.
  Comment[hu]=A modul segítségével egy kattintásra az összes megnyitott ablak 
 minimalizálódik.
  Comment[it]=Modulo che consente di scoprire rapidamente il desktop.
  Comment[zh_CN]=允许快速显示桌面的小程序。
 -Comment[fr]=Un gadget permettant de découvrir rapidement votre bureau.
 -Comment[el]=Ένα συστατικό για την γρήγορη αποκάλυψη της επιφάνειας εργασίας.
  Comment[pt]=Um gadget para mostrar o ambiente de trabalho

 Modified: trunk/E-MODULES-EXTRA/everything-mpris/module.desktop.in
 ===
 --- trunk/E-MODULES-EXTRA/everything-mpris/module.desktop.in    2011-01-16 
 19:10:44 UTC (rev 56198)
 +++ trunk/E-MODULES-EXTRA/everything-mpris/module.desktop.in    2011-01-16 
 19:41:28 UTC (rev 56199)
 @@ -3,9 +3,10 @@
  Name=Everything MPRIS
  Name[fr]=Omni - MPRIS
  Name[it]=Everything - MPRIS
 +Name[de]=Everything MPRIS
  Icon=e-module
  Comment=Control MPRIS compatible media player from Everything.
 -Comment[de]=Steuert MPRIS kompatible Mediaplayer mit Everything.
 +Comment[de]=MPRIS-kompatible Mediaplayer mit Everything steuern.
  Comment[fr]=Contrôle de certains lecteurs multimédias compatibles MPRIS.
  Comment[it]=Controlla i lettori multimediali compatibili con MPRIS da 
 Everything.
  Comment[pt]=Controlar reprodutores musicais compatíveis com MPRIS através do 
 Everything

 Modified: trunk/E-MODULES-EXTRA/everything-mpris/po/LINGUAS
 ===
 --- trunk/E-MODULES-EXTRA/everything-mpris/po/LINGUAS   2011-01-16 19:10:44 
 UTC (rev 56198)
 +++ trunk/E-MODULES-EXTRA/everything-mpris/po/LINGUAS   2011-01-16 19:41:28 
 UTC (rev 56199)
 @@ -1 +1 @@
 -cs el fr it pt
 +cs de el fr it pt

 Modified: trunk/E-MODULES-EXTRA/everything-pidgin/module.desktop.in
 ===
 --- trunk/E-MODULES-EXTRA/everything-pidgin/module.desktop.in   2011-01-16 
 19:10:44 UTC (rev 56198)
 +++ trunk/E-MODULES-EXTRA/everything-pidgin/module.desktop.in   2011-01-16 
 19:41:28 UTC (rev 56199)
 @@ -4,11 +4,13 @@
  Name[fr]=Omni - Pidgin
  Name[it]=Everything - Pidgin
  Name[el]=ΤαΠάνταΌλα - Pidgin
 +Name[de]=Everything Pidgin
  Icon=e-module
  Comment=Open chat windows and send files to buddies.
  Comment[fr]=Pour chatter avec les potes et leur envoyer des fichiers.
  Comment[it]=Apre finestre di chat e invia file ai contatti.
  Comment[el]= Ανοίγει παράθυρα συνομιλιών και αποστολής αρχείων στους φίλους.
  Comment[pt]=Abrir janela de conversação e enviar ficheiros aos amigos
 +Comment[de]=Chat-Fenster öffnen und Dateien an Kontakte 

[E-devel] ecore_file_download with user-agent setting

2011-01-16 Thread sangho park
Dear all,

I have a question about ecore_file_download().
how can I set 'user-agent' with ecore_file_download()?

some web server denies curl request without user-agent setting, but I can't
find APIs to set user agent.
is there already APIs for that? or can I contribute some APIs?

BR.
--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] ecore_file_download with user-agent setting

2011-01-16 Thread The Rasterman
On Mon, 17 Jan 2011 14:00:24 +0900 sangho park gouach...@gmail.com said:

there is no api to set one.

 Dear all,
 
 I have a question about ecore_file_download().
 how can I set 'user-agent' with ecore_file_download()?
 
 some web server denies curl request without user-agent setting, but I can't
 find APIs to set user agent.
 is there already APIs for that? or can I contribute some APIs?
 
 BR.
 --
 Protect Your Site and Customers from Malware Attacks
 Learn about various malware tactics and how to avoid them. Understand 
 malware threats, the impact they can have on your business, and how you 
 can protect your company and customers by using code signing.
 http://p.sf.net/sfu/oracle-sfdevnl
 ___
 enlightenment-devel mailing list
 enlightenment-devel@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
 


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
Protect Your Site and Customers from Malware Attacks
Learn about various malware tactics and how to avoid them. Understand 
malware threats, the impact they can have on your business, and how you 
can protect your company and customers by using code signing.
http://p.sf.net/sfu/oracle-sfdevnl
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


[E-devel] [PATCH] elm_transit

2011-01-16 Thread ChunEon Park
Hi, This is hermet. 

Here is a minor patch for elm_transit
(indentation  removed unuseful calls - evas_map_smooth_set)

Please review then apply it. 

Thanks. 
Index: src/lib/elm_transit.c
===
--- src/lib/elm_transit.c   (revision 56201)
+++ src/lib/elm_transit.c   (working copy)
@@ -118,7 +118,7 @@
 _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);
@@ -167,10 +167,10 @@
 
EINA_LIST_FOREACH_SAFE(transit-effect_list, elist, elist_next, effect)
   _elm_transit_effect_del(transit, effect, elist);
-   
+
while (transit-objs)
   _elm_transit_object_remove(transit, eina_list_data_get(transit-objs));
-   
+
EINA_MAGIC_SET(transit, EINA_MAGIC_NONE);
free(transit);
 }
@@ -189,9 +189,9 @@
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);
 }
@@ -224,12 +224,12 @@
   default:
 break;
  }
-   
+
/* Reverse? */
if (transit-repeat.reverse) transit-progress = 1 - transit-progress;
-   
+
if (transit-time.duration  0) _transit_animate_op(transit, 
transit-progress);
-   
+
/* Not end. Keep going. */
if (elapsed_time  duration) return ECORE_CALLBACK_RENEW;
 
@@ -238,9 +238,9 @@
 (!transit-auto_reverse || transit-repeat.reverse))
  {
 elm_transit_del(transit);
-   return ECORE_CALLBACK_CANCEL;
+return ECORE_CALLBACK_CANCEL;
  }
-   
+
/* Repeat Case */
if (!transit-auto_reverse || transit-repeat.reverse)
  {
@@ -248,9 +248,9 @@
 transit-repeat.reverse = EINA_FALSE;
  }
else transit-repeat.reverse = EINA_TRUE;
-   
+
transit-time.begin = ecore_loop_time_get();
-   
+
return ECORE_CALLBACK_RENEW;
 }
 
@@ -273,11 +273,11 @@
 {
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);
-   
+
return transit;
 }
 /**
@@ -352,7 +352,7 @@
 
effect = ELM_NEW(Elm_Transit_Effect);
if (!effect) return;
-   
+
effect-user_data_free = data_free_cb;
effect-animation_op = cb;
effect-user_data = data;
@@ -439,17 +439,17 @@
 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_event_callback_add(obj, EVAS_CALLBACK_DEL,
   _elm_transit_object_remove_cb, transit);
 }
@@ -909,7 +909,7 @@
 
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);
 }
@@ -950,13 +950,13 @@
  * @return Resizing effect context data.
  *
  * @ingroup Transit
-*/
+ */
 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;
elm_transit_effect_add(transit, 
   _transit_effect_resizing_op, effect_context,
@@ -990,7 +990,7 @@
Elm_Transit_Effect_Translation *translation = data;
Eina_List *elist;
Elm_Transit_Effect_Translation_Node *translation_node;
-   
+
EINA_LIST_FOREACH(translation-nodes, elist, translation_node)
  {
 if (translation_node-obj != obj) continue;
@@ -1008,7 +1008,7 @@
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_Transit_Effect_Translation_Node);
@@ -1055,10 +1055,10 @@
Elm_Transit_Effect_Translation *translation = data;
Elm_Transit_Effect_Translation_Node *translation_node;
Eina_List *elist;
-   
+
if (!translation-nodes)
   translation-nodes = _translation_nodes_build(transit, translation);
-   
+
EINA_LIST_FOREACH(translation-nodes, elist, translation_node)
  {
 x = translation_node-x + translation-from.dx
@@ -1117,7