Some small fixes, and a little polishing of erase function.

This commit is contained in:
Jaime Thomas
2008-11-12 16:06:29 +00:00
parent ed4097231e
commit dd629ff111
5 changed files with 57 additions and 23 deletions

View File

@@ -373,8 +373,8 @@ ecdb_cb_erase_page_buttons_clicked(void *data, Evas_Object *o,
{
printf("Couldn't grab drive!\n");
ecdb_erase_project_destroy(proj);
snprintf(buf, sizeof(buf), "Couldn't grab drive!");
edje_object_part_text_set(swallow, "progress_text", buf);
edje_object_part_text_set(swallow, "progress_text",
"Couldn't grab the drive!");
return;
}
@@ -397,15 +397,6 @@ ecdb_cb_erase_page_buttons_clicked(void *data, Evas_Object *o,
const char *ids[] = {"ecdb/erase/return", "ecdb/erase/begin",
"ecdb/erase/speed"};
ecdb_gui_controls_disable(ids, 3);
/* 2) Start erase
* 3) Grab a drive
* 4) Start burn
* 5) Set up progress callback
*/
}
else if (!strcmp(source, "ecdb/erase/speed"))
{
@@ -674,3 +665,17 @@ ecdb_gui_controls_enable(const char **ids, int n)
}
}
void
ecdb_gui_erase_cleanup(void)
{
Evas_Object *swallow;
const char *ids[] = {"ecdb/erase/return", "ecdb/erase/begin",
"ecdb/erase/speed"};
swallow = evas_object_name_find(ecore_evas_get(em->main_win_ee),
"erase_page");
edje_object_part_text_set(swallow, "progress_text", "Erase Complete!");
ecdb_gui_controls_enable(ids, 3);
edje_object_signal_emit(swallow, "ecdb,erase,done", "ecdb");
}