DBus goodness! Drive detection is more reliable now, need to implement some detection of the volume characteristics now.
This commit is contained in:
@@ -149,7 +149,7 @@ _combo_cb_clicked(void *data, Evas_Object *obj __UNUSED__,
|
||||
Evas_Object *b;
|
||||
Ecdb_Burn_Project *bp;
|
||||
Ecdb_Drive_Info *drive;
|
||||
int sel, i, num_speeds, speed;
|
||||
int sel, i, num_speeds;
|
||||
char buf[1024];
|
||||
|
||||
bp = data;
|
||||
@@ -171,22 +171,7 @@ _combo_cb_clicked(void *data, Evas_Object *obj __UNUSED__,
|
||||
continue;
|
||||
|
||||
b = ecdb_combo_item_add(bp->speed_combo, NULL);
|
||||
|
||||
if ((drive->profile_name) && (drive->profile_name[0] != '\0'))
|
||||
{
|
||||
if (drive->profile_name[0] == 'C')
|
||||
speed = drive->write_speeds[i] / 150;
|
||||
else if (drive->profile_name[0] == 'D')
|
||||
speed = drive->write_speeds[i] / 1352;
|
||||
else
|
||||
speed = drive->write_speeds[i] / 4500;
|
||||
}
|
||||
else
|
||||
{
|
||||
speed = 0;
|
||||
}
|
||||
|
||||
snprintf(buf, sizeof(buf), "%dX (%dkb/s)", speed, drive->write_speeds[i]);
|
||||
snprintf(buf, sizeof(buf), "%dkb/s", drive->write_speeds[i]);
|
||||
ecdb_combo_item_label_set(b, buf);
|
||||
ecdb_combo_append(bp->speed_combo, b);
|
||||
evas_object_show(b);
|
||||
|
Reference in New Issue
Block a user