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

@@ -563,27 +563,14 @@ ecdb_gui_combo_header_from_speeds(Evas_Object *c, const char *name, void *data,
Evas_Object *ret;
Ecdb_Drive_Info *drive;
char buf[1024];
int i, num_speeds, count;
drive = data;
if (!drive)
return NULL;
num_speeds = drive->write_speeds[0];
count = 1;
sel++;
for (i = 1; i < num_speeds; i++)
{
if ((drive->write_speeds[i]) <= 0)
continue;
if (count == sel)
break;
count++;
}
ret = ecdb_label_add(c, name);
snprintf(buf, sizeof(buf), "%d", drive->write_speeds[count]);
snprintf(buf, sizeof(buf), "%d", ecdb_speed_convert(drive, sel));
ecdb_label_text_set(ret, buf);
evas_object_show(ret);