discomfitor pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=1e1754466da1aefa0492a90505fd91e0dc14d59c

commit 1e1754466da1aefa0492a90505fd91e0dc14d59c
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Feb 29 09:53:15 2016 -0500

    use dblequal for double comparisons in edgebindings config
---
 src/modules/conf_bindings/e_int_config_edgebindings.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/modules/conf_bindings/e_int_config_edgebindings.c 
b/src/modules/conf_bindings/e_int_config_edgebindings.c
index 1a08c9a..f80715c 100644
--- a/src/modules/conf_bindings/e_int_config_edgebindings.c
+++ b/src/modules/conf_bindings/e_int_config_edgebindings.c
@@ -1110,7 +1110,7 @@ _edge_grab_wnd_selection_apply(E_Config_Dialog_Data 
*cfdata)
           if ((bi->modifiers == cfdata->locals.modifiers) &&
               (bi->edge == cfdata->locals.edge) &&
               (bi->drag_only == cfdata->locals.drag_only) &&
-              ((bi->delay * 1000) == (cfdata->locals.delay * 1000)))
+              (dblequal(bi->delay * 1000, cfdata->locals.delay * 1000)))
             {
                found = 1;
                break;
@@ -1128,7 +1128,7 @@ _edge_grab_wnd_selection_apply(E_Config_Dialog_Data 
*cfdata)
                   if ((bi->modifiers == cfdata->locals.modifiers) &&
                       (bi->edge == cfdata->locals.edge) &&
                       (bi->drag_only == cfdata->locals.drag_only) &&
-                      ((bi->delay * 1000) == (cfdata->locals.delay * 1000)))
+                      (dblequal(bi->delay * 1000, cfdata->locals.delay * 
1000)))
                     {
                        found = 1;
                        break;
@@ -1429,7 +1429,7 @@ _edge_binding_text_get(E_Zone_Edge edge, float delay, int 
mod, int drag_only)
    if (delay)
      {
         if (eina_strbuf_length_get(b)) eina_strbuf_append(b, " ");
-        if (delay == -1.0)
+        if (dblequal(delay, -1.0))
           eina_strbuf_append(b, _("(left clickable)"));
         else if (delay < -1.0)
           eina_strbuf_append(b, _("(clickable)"));

-- 


Reply via email to