hermet pushed a commit to branch master.

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

commit 2e2d003efeded27955cc9301279cd3a0d362f548
Author: ChunEon Park <[email protected]>
Date:   Thu Aug 21 20:13:17 2014 +0900

    Revert "elm_notify: fixing style applying"
    
    This reverts commit 0ca13c33cd1e89c85793b1d3f5245d86459e051c.
    
    Sorry this can't be pushed cause of compatibility break.
---
 src/lib/elm_notify.c | 35 +++++++++--------------------------
 1 file changed, 9 insertions(+), 26 deletions(-)

diff --git a/src/lib/elm_notify.c b/src/lib/elm_notify.c
index 62aa361..6f1ec92 100644
--- a/src/lib/elm_notify.c
+++ b/src/lib/elm_notify.c
@@ -29,7 +29,6 @@ static void
 _notify_theme_apply(Evas_Object *obj)
 {
    const char *style = elm_widget_style_get(obj);
-   const char *position;
    double ax, ay;
 
    ELM_NOTIFY_DATA_GET(obj, sd);
@@ -38,32 +37,16 @@ _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 (ax <= 0.3)
-          position = "top_left";
-        else if (ax >= 0.7)
-          position = "top_right";
-        else
-          position = "top";
-     }
-   else if (ay >= 0.7)
-     {
-        if (ax <= 0.3)
-          position = "bottom_left";
-        else if (ax >= 0.7)
-          position = "bottom_right";
-        else
-          position = "bottom";
-     }
-   else if (ax <= 0.3)
-     position = "left";
-   else if (ax >= 0.7)
-     position = "right";
+   if (ay == 0.0)
+     elm_widget_theme_object_set(obj, sd->notify, "notify", "top", style);
+   else if (ay == 1.0)
+     elm_widget_theme_object_set(obj, sd->notify, "notify", "bottom", style);
+   else if (ax == 0.0)
+     elm_widget_theme_object_set(obj, sd->notify, "notify", "left", style);
+   else if (ax == 1.0)
+     elm_widget_theme_object_set(obj, sd->notify, "notify", "right", style);
    else
-     position = "center";
-
-   elm_widget_theme_object_set(obj, sd->notify, "notify", position, style);
+     elm_widget_theme_object_set(obj, sd->notify, "notify", "center", style);
 }
 
 /**

-- 


Reply via email to