A bad way of disabling buttons.
This commit is contained in:
parent
308f7ae8ab
commit
2ce5116e67
@ -145,6 +145,36 @@ group {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
part {
|
||||
name: "disabled_hack";
|
||||
type: RECT;
|
||||
mouse_events: 1;
|
||||
|
||||
description {
|
||||
state: "default" 0.0;
|
||||
visible: 0;
|
||||
|
||||
rel1 {
|
||||
to: "bg";
|
||||
relative: 0.5 0.0;
|
||||
offset: 0 0;
|
||||
}
|
||||
|
||||
rel2 {
|
||||
to: "bg";
|
||||
relative: 1.0 1.0;
|
||||
offset: -1 -1;
|
||||
}
|
||||
}
|
||||
|
||||
description {
|
||||
state: "visible" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 160;
|
||||
visible: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
programs {
|
||||
@ -179,8 +209,16 @@ group {
|
||||
name: "erase_page,controls_disable";
|
||||
signal: "ecdb,erase,start";
|
||||
source: "ecdb";
|
||||
action: STATE_SET "disabled" 0.0;
|
||||
target: "ecdb/erase/return";
|
||||
action: STATE_SET "visible" 0.0;
|
||||
target: "disabled_hack";
|
||||
}
|
||||
|
||||
program {
|
||||
name: "erase_page,controls_enable";
|
||||
signal: "ecdb,erase,done";
|
||||
source: "ecdb";
|
||||
action: STATE_SET "default" 0.0;
|
||||
target: "disabled_hack";
|
||||
}
|
||||
|
||||
program {
|
||||
|
@ -376,8 +376,10 @@ ecdb_cb_erase_page_buttons_clicked(void *data, Evas_Object *o,
|
||||
ecdb_erase_project_destroy(proj);
|
||||
}
|
||||
|
||||
proj->speed = speed;
|
||||
speed = 0;
|
||||
proj->quick = speed;
|
||||
|
||||
/* I need to find a better way to do this... */
|
||||
edje_object_signal_emit(swallow, "ecdb,erase,start", "ecdb");
|
||||
|
||||
/* 1) Disable buttons...
|
||||
* 2) Start erase
|
||||
|
Loading…
Reference in New Issue
Block a user