Button and check can now be disabled.

This commit is contained in:
Jaime Thomas
2008-11-06 19:04:00 +00:00
parent e863acb6b5
commit 7aa56383a4
6 changed files with 116 additions and 7 deletions

View File

@ -137,10 +137,16 @@ group {
}
description {
state: "disabled" 0.0;
state: "disabled_unsel" 0.0;
inherit: "default" 0.0;
color: 255 255 255 128;
}
description {
state: "disabled_sel" 0.0;
inherit: "active" 0.0;
color: 255 255 255 128;
}
}
part {
@ -201,5 +207,51 @@ group {
toggle_state();
}
}
program {
name: "disabled";
signal: "ecdb,disable";
source: "ecdb";
action: STATE_SET "disabled" 0.0;
target: "check_base";
target: "check_shadow";
}
program {
name: "disabled_check";
signal: "ecdb,disable";
source: "ecdb";
script {
if (get_int(s) == 1)
set_state(PART:"check", "disabled_sel",
0.0);
else
set_state(PART:"check",
"disabled_unsel", 0.0);
}
}
program {
name: "enabled";
signal: "ecdb,enable";
source: "ecdb";
action: STATE_SET "default" 0.0;
target: "check_base";
target: "check_shadow";
}
program {
name: "enabled_check";
signal: "ecdb,enable";
source: "ecdb";
script {
if (get_int(s) == 1)
set_state(PART:"check", "active", 0.0);
else
set_state(PART:"check", "default", 0.0);
}
}
}
}