Small theme fixes, and now use the available space as reported by burn_disc_available_space (either the write_opts need to be passed, or libburn is really innacurate)

This commit is contained in:
Jaime Thomas
2008-12-27 17:54:40 +00:00
parent e5b8de8229
commit 43b2721f68
5 changed files with 24 additions and 17 deletions

View File

@@ -33,6 +33,7 @@ _update_capacity(void *data, int type, void *ev_data)
src = evas_object_data_get(bdd->capacity, "source");
if ((proj->drive) && (proj->drive->capacity > 0))
{
printf("drive capacity: %lld, src->size: %lld\n", proj->drive->capacity, src->size);
msg.val = (float)src->size / (float)proj->drive->capacity;
}
else

View File

@@ -49,7 +49,13 @@ ecdb_aquire_drive_info(void)
drive->profile_name = eina_stringshare_add(speeds->profile_name);
drive->profile_loaded = speeds->profile_loaded;
drive->capacity = speeds->end_lba * 2048;
if (burn_drive_grab(drives_current[i].drive, 1))
{
drive->capacity = burn_disc_available_space(drives_current[i].drive,
NULL);
burn_drive_release(drives_current[i].drive, 0);
}
while (speeds->next)
{