Use the speed and drive chosen when burning, and add a speed convert function.

This commit is contained in:
Jaime Thomas
2008-12-21 04:37:50 +00:00
parent 6101e38169
commit 2e2d86a406
4 changed files with 31 additions and 14 deletions

View File

@@ -262,3 +262,24 @@ ecdb_dnd_entry_dnd_set(Evas_Object *o, Ecore_X_Selection_Data_Files *files)
ecdb_entry_text_set(o, uri->path);
efreet_uri_free(uri);
}
int
ecdb_speed_convert(Ecdb_Drive_Info *drive, int sel)
{
int count, num_speeds, i;
count = 1;
sel++;
num_speeds = drive->write_speeds[0];
for (i = 0; i < num_speeds; i++)
{
if (drive->write_speeds[i] <= 0)
continue;
if (count == sel)
return drive->write_speeds[count];
count++;
}
return -1;
}