seoz pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=ae9e088cb9e9f7405fb412cf62b9c24b5c144204

commit ae9e088cb9e9f7405fb412cf62b9c24b5c144204
Author: Daniel Juyung Seo <[email protected]>
Date:   Thu Aug 21 22:45:01 2014 +0900

    notify: fix notify to keep the consistency even that was wrongly 
implemented.
    
    According to hermet's review comments, let's keep the consistency even
    if it was wrongly implemented.
---
 src/lib/elm_notify.c | 25 ++++++++++++++-----------
 1 file changed, 14 insertions(+), 11 deletions(-)

diff --git a/src/lib/elm_notify.c b/src/lib/elm_notify.c
index 62aa361..1ecb66f 100644
--- a/src/lib/elm_notify.c
+++ b/src/lib/elm_notify.c
@@ -38,30 +38,33 @@ _notify_theme_apply(Evas_Object *obj)
    ay = sd->vertical_align;
    if ((elm_widget_mirrored_get(obj)) && (ax != ELM_NOTIFY_ALIGN_FILL)) ax = 
1.0 - ax;
 
-   if (ay <= 0.3)
+   if (ay == 0.0)
      {
-        if (ax <= 0.3)
+        if (ax == 0.0)
           position = "top_left";
-        else if (ax >= 0.7)
+        else if (ax == 1.0)
           position = "top_right";
         else
           position = "top";
      }
-   else if (ay >= 0.7)
+   else if (ay == 1.0)
      {
-        if (ax <= 0.3)
+        if (ax == 0.0)
           position = "bottom_left";
-        else if (ax >= 0.7)
+        else if (ax == 1.0)
           position = "bottom_right";
         else
           position = "bottom";
      }
-   else if (ax <= 0.3)
-     position = "left";
-   else if (ax >= 0.7)
-     position = "right";
    else
-     position = "center";
+     {
+        if (ax == 0.0)
+          position = "left";
+        else if (ax == 1.0)
+          position = "right";
+        else
+          position = "center";
+     }
 
    elm_widget_theme_object_set(obj, sd->notify, "notify", position, style);
 }

-- 


Reply via email to