Combo works now, added a label widget, and use stringshare for the constant drive info stuff.
This commit is contained in:
@@ -20,6 +20,8 @@ static void ecdb_erase_page_show(void);
|
||||
static void ecdb_burn_image_page_show(void);
|
||||
static void ecdb_page_hide(const char *pname);
|
||||
static void ecdb_filelist_focus_handle(int action, Evas_Object *fl);
|
||||
Evas_Object *combo_header_create(Evas_Object *c, const char *name,
|
||||
Evas_Object *obj, int sel);
|
||||
|
||||
static void
|
||||
ecdb_cb_enter(Ecore_Evas *ee)
|
||||
@@ -772,6 +774,7 @@ ecdb_erase_page_show(void)
|
||||
|
||||
b = ecdb_combo_add(swallow, "ecdb/erase/drive");
|
||||
ecdb_combo_header_set(b, "Drive");
|
||||
ecdb_combo_header_create_set(b, combo_header_create);
|
||||
|
||||
EINA_LIST_FOREACH(em->drives, l, drive)
|
||||
{
|
||||
@@ -912,3 +915,16 @@ ecdb_gui_burn_image_cleanup(void)
|
||||
edje_object_signal_emit(swallow, "ecdb,burn_image,done", "ecdb");
|
||||
}
|
||||
|
||||
Evas_Object *
|
||||
combo_header_create(Evas_Object *c, const char *name, Evas_Object *obj, int sel)
|
||||
{
|
||||
Evas_Object *ret;
|
||||
Ecdb_Drive_Info *drive;
|
||||
|
||||
ret = ecdb_label_add(c, name);
|
||||
drive = eina_list_nth(em->drives, sel);
|
||||
ecdb_label_text_set(ret, drive->product);
|
||||
evas_object_show(ret);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user