Fix a bunch of mistakes I made before.
This commit is contained in:
@@ -108,7 +108,7 @@ _button_cb_begin(void *data, Evas_Object *obj __UNUSED__,
|
||||
return;
|
||||
}
|
||||
|
||||
burn_result = ecdb_burn_project(ECDB_BURN(proj));
|
||||
burn_result = ecdb_burn_project(ECDB_BURN(proj), page);
|
||||
switch (burn_result)
|
||||
{
|
||||
case ECDB_ERROR_NONE:
|
||||
@@ -280,33 +280,33 @@ ecdb_burn_image_page_show(Ecdb_Page *page)
|
||||
|
||||
void
|
||||
ecdb_burn_image_cleanup(Ecdb_Page *page)
|
||||
{
|
||||
Ecdb_Burn_Image_Project *proj;
|
||||
int idx;
|
||||
|
||||
if (!page)
|
||||
{
|
||||
printf("ecdb_burn_image_cleanup: NULL page!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
proj = evas_object_data_get(page->image, "proj");
|
||||
if (!proj)
|
||||
{
|
||||
printf("ecdb_burn_image_cleanup: NULL proj!\n");
|
||||
return;
|
||||
}
|
||||
{
|
||||
Ecdb_Image_Project *proj;
|
||||
int idx;
|
||||
|
||||
Evas_Object *objs[] = {proj->entry, ECDB_PROJECT(proj)->ret,
|
||||
ECDB_PROJECT(proj)->begin, ECDB_PROJECT(proj)->drive_combo,
|
||||
if (!page)
|
||||
{
|
||||
printf("ecdb_burn_image_cleanup: NULL page!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
proj = evas_object_data_get(page->image, "proj");
|
||||
if (!proj)
|
||||
{
|
||||
printf("ecdb_burn_image_cleanup: NULL proj!\n");
|
||||
return;
|
||||
}
|
||||
|
||||
Evas_Object *objs[] = {proj->entry, ECDB_PROJECT(proj)->ret,
|
||||
ECDB_PROJECT(proj)->begin, ECDB_PROJECT(proj)->drive_combo,
|
||||
ECDB_BURN(proj)->speed_combo, NULL};
|
||||
for (idx = 0; objs[idx]; idx++)
|
||||
edje_object_signal_emit(objs[i], "ecdb,enable", "ecdb");
|
||||
for (idx = 0; objs[idx]; idx++)
|
||||
edje_object_signal_emit(objs[idx], "ecdb,enable", "ecdb");
|
||||
|
||||
edje_object_part_text_set(page->image, "progress_text", "Burn Complete!");
|
||||
edje_object_signal_emit(page->image, "ecdb,burn_image,done", "ecdb");
|
||||
|
||||
// Set project attributes back to normal
|
||||
edje_object_signal_emit(page->image, "ecdb,burn_image,done", "ecdb");
|
||||
|
||||
// Set project attributes back to normal
|
||||
ecdb_entry_text_set(proj->entry, NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user