forked from enlightenment/edi
Improve displaying of test panel when running test
Only display desired panel - others can be opened manually
This commit is contained in:
parent
e03730b913
commit
5229d2107c
|
@ -322,12 +322,15 @@ _tb_goto_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUS
|
|||
}
|
||||
|
||||
static Eina_Bool
|
||||
_edi_build_prep(Evas_Object *button)
|
||||
_edi_build_prep(Evas_Object *button, Eina_Bool test)
|
||||
{
|
||||
elm_toolbar_item_selected_set(elm_toolbar_selected_item_get(button), EINA_FALSE);
|
||||
|
||||
edi_consolepanel_clear();
|
||||
edi_consolepanel_show();
|
||||
if (test)
|
||||
edi_testpanel_show();
|
||||
else
|
||||
edi_consolepanel_show();
|
||||
|
||||
if (!edi_builder_can_build())
|
||||
{
|
||||
|
@ -341,32 +344,28 @@ _edi_build_prep(Evas_Object *button)
|
|||
static void
|
||||
_tb_build_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (_edi_build_prep(obj))
|
||||
if (_edi_build_prep(obj, EINA_FALSE))
|
||||
edi_builder_build();
|
||||
}
|
||||
|
||||
static void
|
||||
_tb_test_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (_edi_build_prep(obj))
|
||||
{
|
||||
elm_panel_hidden_set(_edi_consolepanel, EINA_TRUE);
|
||||
edi_testpanel_show();
|
||||
edi_builder_test();
|
||||
}
|
||||
if (_edi_build_prep(obj, EINA_TRUE))
|
||||
edi_builder_test();
|
||||
}
|
||||
/*
|
||||
static void
|
||||
_tb_run_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (_edi_build_prep(obj))
|
||||
if (_edi_build_prep(obj, EINA_FALSE))
|
||||
edi_builder_run();
|
||||
}
|
||||
*/
|
||||
static void
|
||||
_tb_clean_cb(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_UNUSED)
|
||||
{
|
||||
if (_edi_build_prep(obj))
|
||||
if (_edi_build_prep(obj, EINA_FALSE))
|
||||
edi_builder_clean();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue