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

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -7,4 +7,8 @@ images {
image: "button_shadow.png" COMP;
image: "button_shadow_overlay.png" COMP;
image: "button.png" COMP;
image: "drive_optical.png" COMP;
image: "audio.png" COMP;
image: "clear.png" COMP;
image: "iso.png" COMP;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

@ -241,7 +241,7 @@ ecdb_set_main_theme(const char *theme_name, const char *group)
"/themes/default.edj", group))
{
printf("Error setting default theme: %s\n",
PACKAGE_DATA_DIR"/themes/default/edj");
PACKAGE_DATA_DIR"/themes/default.edj");
return;
}
evas_font_path_append(ecore_evas_get(em->main_win_ee),

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);
}

View File

@ -13,4 +13,6 @@ int ecdb_image_init(void);
/* This is misc after all */
int ecdb_match_keyword(const char *chk, const char *key, int len);
char *ecdb_strip_next_argument(const char *strip);
void ecdb_button_icon_swallow(Evas *e, Evas_Object *b,
const char *iname);
#endif