When changing the gravity setting, one cannot reset it to 0, as the setting is
not properly shown when reopening the dialog. It's always shown as 0 and
therefore not saveable.

---
 src/modules/physics/e_mod_config.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/modules/physics/e_mod_config.c 
b/src/modules/physics/e_mod_config.c
index c2dbc44..ace03a9 100644
--- a/src/modules/physics/e_mod_config.c
+++ b/src/modules/physics/e_mod_config.c
@@ -6,7 +6,7 @@ struct _E_Config_Dialog_Data
 {
    double delay; /* delay before applying physics */
    double max_mass; /* maximum mass for a window */
-   double gravity; /* maximum mass for a window */
+   double gravity; /* gravity for a window */
    Eina_Bool ignore_fullscreen;
    Eina_Bool ignore_maximized;
    Eina_Bool ignore_shelves;
@@ -58,6 +58,7 @@ _create_data(E_Config_Dialog *cfd __UNUSED__)
 
    cfdata->delay = _physics_mod->conf->delay;
    cfdata->max_mass = _physics_mod->conf->max_mass;
+   cfdata->gravity = _physics_mod->conf->gravity;
 
    return cfdata;
 }
-- 
1.8.4.3


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to