Winner!11!11!1!! Erase progress works now!!!!!11!!!?<>_~!~!
This commit is contained in:
parent
b268ba1c40
commit
9571e941a6
@ -183,16 +183,15 @@ ecdb_drive_progress_update(void *data)
|
|||||||
}
|
}
|
||||||
else if (stat == BURN_DRIVE_IDLE)
|
else if (stat == BURN_DRIVE_IDLE)
|
||||||
{
|
{
|
||||||
ecore_pipe_write(proj->pipe, NULL, 0);
|
ecore_pipe_write(proj->pipe, "AC",
|
||||||
|
sizeof("AC"));
|
||||||
ecore_pipe_del(proj->pipe);
|
ecore_pipe_del(proj->pipe);
|
||||||
/* Call the finished event handler here */
|
/* Call the finished event handler here */
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Arg... too tired to figure this out now
|
ecore_pipe_write(proj->pipe, &p, sizeof(p));
|
||||||
//ecore_pipe_write(proj->pipe, &p, sizeof(p));
|
|
||||||
printf("%d/%d\n", p.sector, p.sectors);
|
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -92,25 +92,26 @@ ecdb_erase_disc(Ecdb_Erase_Project *proj)
|
|||||||
static void
|
static void
|
||||||
ecdb_erase_progress_handler(void *data, void *buffer, unsigned int nbyte)
|
ecdb_erase_progress_handler(void *data, void *buffer, unsigned int nbyte)
|
||||||
{
|
{
|
||||||
BurnProgress *p = buffer;
|
BurnProgress *p;
|
||||||
Evas_Object *swallow;
|
Evas_Object *swallow;
|
||||||
char buf[1024];
|
char buf[1024];
|
||||||
|
char *text = buffer;
|
||||||
|
|
||||||
// Is this correct?
|
if ((nbyte != sizeof(BurnProgress)) || (!strcmp(text, "AC")))
|
||||||
// Check this
|
|
||||||
if (sizeof(buffer) == sizeof(BurnProgress))
|
|
||||||
{
|
|
||||||
p = buffer;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
ecore_event_add(ECDB_DRIVE_ACTION_FINISHED, NULL, NULL, NULL);
|
ecore_event_add(ECDB_DRIVE_ACTION_FINISHED, NULL, NULL, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
p = buffer;
|
||||||
|
text = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
swallow = evas_object_name_find(ecore_evas_get(em->main_win_ee),
|
swallow = evas_object_name_find(ecore_evas_get(em->main_win_ee),
|
||||||
"erase_page");
|
"erase_page");
|
||||||
snprintf(buf, sizeof(buf), "%d/%d", p->sector, p->sectors);
|
snprintf(buf, sizeof(buf), "%d/%d", p->sector, p->sectors);
|
||||||
|
printf("buf: %s\n", buf);
|
||||||
edje_object_part_text_set(swallow, "progress_text", buf);
|
edje_object_part_text_set(swallow, "progress_text", buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user