Add combo_item widget, custom layout for the combo is working again.

This commit is contained in:
Jaime Thomas
2008-12-24 18:59:22 +00:00
parent 786939dabd
commit e3d28d7029
7 changed files with 99 additions and 35 deletions

View File

@@ -147,7 +147,7 @@ _combo_cb_clicked(void *data, Evas_Object *obj, void *event_info)
if ((drive->write_speeds[i]) <= 0)
continue;
b = ecdb_button_add(c2, NULL);
b = ecdb_combo_item_add(c2, NULL);
if ((drive->profile_name) && (drive->profile_name[0] != '\0'))
{
@@ -164,7 +164,7 @@ _combo_cb_clicked(void *data, Evas_Object *obj, void *event_info)
}
snprintf(buf, sizeof(buf), "%dX (%dkb/s)", speed, drive->write_speeds[i]);
ecdb_button_label_set(b, buf);
ecdb_combo_item_label_set(b, buf);
ecdb_combo_append(c2, b);
evas_object_show(b);
}
@@ -229,8 +229,8 @@ ecdb_burn_image_page_show(void)
EINA_LIST_FOREACH(em->drives, l, drive)
{
b = ecdb_button_add(c1, NULL);
ecdb_button_label_set(b, drive->product);
b = ecdb_combo_item_add(c1, NULL);
ecdb_combo_item_label_set(b, drive->product);
evas_object_smart_callback_add(b, "clicked", _combo_cb_clicked, c2);
ecdb_combo_append(c1, b);
evas_object_show(b);