icons in the ibox and pager will pulsate if urgent

SVN revision: 27992
This commit is contained in:
Viktor Kojouharov 2007-01-15 04:03:08 +00:00
parent c98c099d95
commit 94bdc552dc
2 changed files with 105 additions and 0 deletions

View File

@ -115,6 +115,9 @@ group {
data {
// item: "item_list", "item item2 item3";
}
script {
public urgent;
}
parts {
part {
name: "base";
@ -287,6 +290,11 @@ group {
source: "";
action: STATE_SET "default" 0.0;
target: "background";
script {
if (get_int(urgent) == 1) {
run_program(PROGRAM:"go_urgent");
}
}
}
program {
name: "go_big";
@ -325,6 +333,60 @@ group {
source: "e";
// action: SIGNAL_EMIT "active" 0.0;
}
program {
name: "init";
signal: "load";
source: "";
script {
set_int(urgent, 0);
}
}
program {
name: "set_urgent";
signal: "e,state,urgent";
source: "e";
script {
set_int(urgent, 1);
}
}
program {
name: "go_urgent";
signal: "e,state,urgent";
source: "e";
action: STATE_SET "visible" 0.0;
target: "background";
after: "go_urgent2";
}
program {
name: "go_urgent2";
action: STATE_SET "hidden" 0.0;
transition: LINEAR 0.5;
target: "background";
after: "go_urgent";
}
program {
name: "unset_urgent";
signal: "e,state,not_urgent";
source: "e";
script {
set_int(urgent, 0);
}
}
program {
name: "go_unurgent";
signal: "e,state,not_urgent";
source: "e";
action: ACTION_STOP;
target: "go_urgent";
target: "go_urgent2";
after: "go_unurgent2";
}
program {
name: "go_unurgent2";
action: STATE_SET "default" 0.0;
transition: SINUSOIDAL 0.3;
target: "background";
}
}
}

View File

@ -638,6 +638,17 @@ group {
border: 6 13 7 5;
}
}
description {
state: "urgent" 0.0;
inherit: "default" 0.0;
rel1 {
relative: -0.5 -0.5;
}
rel2 {
relative: 1.5 1.5;
}
color: 255 255 255 0;
}
}
part {
name: "icon";
@ -659,5 +670,37 @@ group {
}
}
}
programs {
program {
name: "go_urgent_pre";
signal: "e,state,urgent";
source: "e";
action: STATE_SET "default" 0.0;
target: "overlay";
after: "go_urgent";
}
program {
name: "go_urgent";
action: STATE_SET "urgent" 0.0;
transition: LINEAR 0.5;
target: "overlay";
after: "go_urgent_pre";
}
program {
name: "go_unurgent";
signal: "e,state,not_urgent";
source: "e";
action: ACTION_STOP;
target: "go_urgent_pre";
target: "go_urgent";
after: "go_unurgent2";
}
program {
name: "go_unurgent2";
action: STATE_SET "default" 0.0;
transition: SINUSOIDAL 0.3;
target: "overlay";
}
}
}