Buttons are pretty decent looking now, with focus too.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user