Fix a couple bugs, and now errors are displayed to progress text.
This commit is contained in:
@@ -38,7 +38,6 @@ void
|
||||
ecdb_erase_project_destroy(Ecdb_Erase_Project *proj)
|
||||
{
|
||||
ecdb_project_destroy(ECDB_PROJECT(proj));
|
||||
free(proj);
|
||||
}
|
||||
|
||||
int
|
||||
@@ -90,6 +89,11 @@ static void
|
||||
ecdb_erase_progress_handler(void *data, void *buffer, int nbyte)
|
||||
{
|
||||
BurnProgress *p = buffer;
|
||||
Evas_Object *swallow;
|
||||
char buf[1024];
|
||||
|
||||
printf("Sector %d of %d\n", p->sector, p->sectors);
|
||||
swallow = evas_object_name_find(ecore_evas_get(em->main_win_ee),
|
||||
"erase_page");
|
||||
snprintf(buf, sizeof(buf), "%d/%d", p->sector, p->sectors);
|
||||
edje_object_part_text_set(swallow, "progress_text", buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user