Fix a couple bugs, and now errors are displayed to progress text.

This commit is contained in:
Jaime Thomas
2008-11-05 17:02:35 +00:00
parent c39fda7b86
commit bcea7bba32
3 changed files with 15 additions and 5 deletions

View File

@@ -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);
}