Buttons are pretty decent looking now, with focus too.

This commit is contained in:
Jaime Thomas
2008-09-20 01:00:13 +00:00
parent 3f29f41400
commit a9e9965cdb
4 changed files with 161 additions and 13 deletions

View File

@@ -127,11 +127,15 @@ void
ecdb_button_icon_swallow(Evas *e, Evas_Object *b, const char *iname)
{
Evas_Object *icon;
Evas_Coord x, y, w, h;
icon = evas_object_image_add(e);
evas_object_image_file_set(icon, em->theme_path, iname);
icon = edje_object_add(e);
edje_object_file_set(icon, em->theme_path, iname);
edje_object_part_geometry_get(b, "icon", &x, &y, &w, &h);
evas_object_move(icon, x, y);
evas_object_resize(icon, w, h);
edje_object_part_swallow(b, "icon", icon);
evas_object_show(icon);
}