A bad way of disabling buttons.
This commit is contained in:
parent
20c6c541a2
commit
3262d4941f
@ -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 {
|
programs {
|
||||||
@ -179,8 +209,16 @@ group {
|
|||||||
name: "erase_page,controls_disable";
|
name: "erase_page,controls_disable";
|
||||||
signal: "ecdb,erase,start";
|
signal: "ecdb,erase,start";
|
||||||
source: "ecdb";
|
source: "ecdb";
|
||||||
action: STATE_SET "disabled" 0.0;
|
action: STATE_SET "visible" 0.0;
|
||||||
target: "ecdb/erase/return";
|
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 {
|
program {
|
||||||
|
@ -376,8 +376,10 @@ ecdb_cb_erase_page_buttons_clicked(void *data, Evas_Object *o,
|
|||||||
ecdb_erase_project_destroy(proj);
|
ecdb_erase_project_destroy(proj);
|
||||||
}
|
}
|
||||||
|
|
||||||
proj->speed = speed;
|
proj->quick = speed;
|
||||||
speed = 0;
|
|
||||||
|
/* I need to find a better way to do this... */
|
||||||
|
edje_object_signal_emit(swallow, "ecdb,erase,start", "ecdb");
|
||||||
|
|
||||||
/* 1) Disable buttons...
|
/* 1) Disable buttons...
|
||||||
* 2) Start erase
|
* 2) Start erase
|
||||||
|
Loading…
Reference in New Issue
Block a user