From ae9e088cb9e9f7405fb412cf62b9c24b5c144204 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Thu, 21 Aug 2014 22:45:01 +0900 Subject: [PATCH] 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); } -- 2.7.4