A bit of reorganization.

This commit is contained in:
Jaime Thomas
2008-11-03 14:56:30 +00:00
parent a096cfc587
commit 7b07c374a1
7 changed files with 122 additions and 89 deletions

View File

@@ -359,6 +359,29 @@ ecdb_cb_erase_page_buttons_clicked(void *data, Evas_Object *o,
}
else if (!strcmp(source, "ecdb/erase/begin"))
{
int speed;
Ecdb_Erase_Project *proj;
proj = ecdb_erase_project_new();
if (!ecdb_aquire_drive(ECDB_PROJECT(proj), 0))
{
printf("Couldn't grab drive!\n");
ecdb_erase_project_destroy(proj);
}
if (!ecdb_erase_disc(proj))
{
printf("Couldn't begin burn!\n");
ecdb_erase_project_destroy(proj);
}
/* 1) Disable buttons...
* 2) Start erase
* 3) Grab a drive
* 4) Start burn
* 5) Set up progress callback
*/
}
else if (!strcmp(source, "ecdb/erage/speed"))