More work on the buttons

This commit is contained in:
Jaime Thomas
2008-09-15 13:31:30 +00:00
parent 999198edc7
commit 7f898d8daf
8 changed files with 21 additions and 1 deletions

View File

@@ -123,3 +123,17 @@ ecdb_strip_next_argument(const char *strip)
return NULL;
}
void
ecdb_button_icon_swallow(Evas *e, Evas_Object *b, const char *iname)
{
Evas_Object *icon;
icon = evas_object_image_add(e);
/* FIXME WRONG HERE */
evas_object_image_file_set(icon, PACKAGE_DATA_DIR"/themes/default.edj",
iname);
edje_object_part_swallow(b, "icon", icon);
}