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 6bf1aeb2d6
commit 4b5ad3091a
5 changed files with 24 additions and 17 deletions

View File

@ -64,8 +64,8 @@ group {
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 10 5;
relative: 1.0 0.0;
offset: -200 5;
}
rel2 {
@ -181,8 +181,8 @@ group {
rel2 {
to: "bg";
relative: 0.5 1.0;
offset: -1 -26;
relative: 1.0 1.0;
offset: -205 -26;
}
}
}
@ -321,8 +321,8 @@ group {
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 0 0;
relative: 1.0 0.0;
offset: -200 0;
}
rel2 {

View File

@ -85,8 +85,8 @@ group {
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 10 5;
relative: 1.0 0.0;
offset: -200 5;
}
rel2 {
@ -201,8 +201,8 @@ group {
rel2 {
to: "bg";
relative: 0.5 1.0;
offset: -1 -10;
relative: 1.0 1.0;
offset: -205 -10;
}
image {
@ -295,8 +295,8 @@ group {
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 0 0;
relative: 1.0 0.0;
offset: -200 0;
}
rel2 {

View File

@ -80,8 +80,8 @@ group {
rel1 {
to: "bg";
relative: 0.5 0.0;
offset: 10 5;
relative: 1.0 0.0;
offset: -200 5;
}
rel2 {
@ -174,8 +174,8 @@ group {
rel2 {
to: "bg";
relative: 0.5 1.0;
offset: -1 -10;
relative: 1.0 1.0;
offset: -205 -10;
}
image {

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)
{