notify: animate on hide

There was all the necessary code, except that the default
theme did not implement properly the signal & required data.

There is still a problem though, as the "timeout" smart callback
will be called at the start of the animation, so it's not possible
for an app to hide() or del() at this point (that would get
rid of the animation). But there's no other callback after
the animation ends.

elementary_test -to Notify > "Bottom" illustrates this issue.
This commit is contained in:
Jean-Philippe Andre 2015-10-21 17:23:10 +09:00
parent b17287397a
commit a4e0a789d0
1 changed files with 2 additions and 1 deletions

View File

@ -14,6 +14,7 @@ group { name: "elm/notify/block_events/default";
group { name: "elm/notify/top/default";
images.image: "darken_rounded_square.png" COMP;
data.item: "hide_finished_signal" "on";
parts {
part { name: "clip"; type: RECT;
description { state: "default" 0.0;
@ -65,7 +66,7 @@ group { name: "elm/notify/top/default";
target: "base";
}
program {
signal: "elm,hide"; source: "elm";
signal: "elm,state,hide"; source: "elm";
action: STATE_SET "default" 0.0;
target: "clip";
target: "base";