More work on the buttons
This commit is contained in:
parent
ddb2b31d42
commit
571cbaf87e
BIN
ecdb/trunk/data/themes/default/images/audio.png
Normal file
BIN
ecdb/trunk/data/themes/default/images/audio.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
ecdb/trunk/data/themes/default/images/clear.png
Normal file
BIN
ecdb/trunk/data/themes/default/images/clear.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.6 KiB |
BIN
ecdb/trunk/data/themes/default/images/drive_optical.png
Normal file
BIN
ecdb/trunk/data/themes/default/images/drive_optical.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.3 KiB |
@ -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;
|
||||
}
|
||||
|
BIN
ecdb/trunk/data/themes/default/images/iso.png
Normal file
BIN
ecdb/trunk/data/themes/default/images/iso.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
@ -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),
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user