summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2015-11-20 14:26:36 +0530
committerAmitesh Singh <amitesh.sh@samsung.com>2015-11-20 14:40:35 +0530
commit81b5ee7e16c37f96e2ac11d13893720bdd637e5c (patch)
tree458529adae8c06a80fd86cd69a233b25194c033c
parent3982f0fd39d92f2d6bdab7920a96247da1fe4207 (diff)
notify: fix broken timeout feature in elm_notify
Add missing signal "elm,action,hide,finished" in notify theme and hide the notify object when hide is finished. fixes T2853 @fix
-rw-r--r--data/themes/edc/elm/notify.edc4
-rw-r--r--src/lib/elm_notify.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/data/themes/edc/elm/notify.edc b/data/themes/edc/elm/notify.edc
index 533ecc75a..3c8448b35 100644
--- a/data/themes/edc/elm/notify.edc
+++ b/data/themes/edc/elm/notify.edc
@@ -71,6 +71,10 @@ group { name: "elm/notify/top/default";
71 target: "clip"; 71 target: "clip";
72 target: "base"; 72 target: "base";
73 transition: DECELERATE 0.5; 73 transition: DECELERATE 0.5;
74 after: "hide_finish";
75 }
76 program { name: "hide_finish";
77 action: SIGNAL_EMIT "elm,action,hide,finished" "elm";
74 } 78 }
75 } 79 }
76} 80}
diff --git a/src/lib/elm_notify.c b/src/lib/elm_notify.c
index 82f98d302..3e78ad94f 100644
--- a/src/lib/elm_notify.c
+++ b/src/lib/elm_notify.c
@@ -431,6 +431,7 @@ _hide_finished_cb(void *data,
431 sd->had_hidden = EINA_TRUE; 431 sd->had_hidden = EINA_TRUE;
432 evas_object_hide(sd->notify); 432 evas_object_hide(sd->notify);
433 if (!sd->allow_events) evas_object_hide(sd->block_events); 433 if (!sd->allow_events) evas_object_hide(sd->block_events);
434 evas_object_hide(data);
434} 435}
435 436
436EOLIAN static void 437EOLIAN static void