aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-07-01 18:17:47 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-07-01 18:17:47 +0200
commit0dfad0b4fadb1ec95c9680051fbbe99ad4ad6e4f (patch)
tree49e7e35c065c6cc6aca826e7a12fb26ca2b11e70
parentc0082ac6596e70a90609c4bb5a9ecc7fed2dccde (diff)
downloadsynthpod-0dfad0b4fadb1ec95c9680051fbbe99ad4ad6e4f.tar.xz
fix wrong image function usage for elm_icon.
-rw-r--r--lib/synthpod_ui.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/synthpod_ui.c b/lib/synthpod_ui.c
index f1809a50..dc49c6b1 100644
--- a/lib/synthpod_ui.c
+++ b/lib/synthpod_ui.c
@@ -2849,8 +2849,7 @@ _modlist_content_get(void *data, Evas_Object *obj, const char *part)
Evas_Object *icon = elm_icon_add(lay);
if(icon)
{
- //elm_icon_standard_set(icon, "close");
- elm_layout_file_set(icon, SYNTHPOD_DATA_DIR"/synthpod.edj",
+ elm_image_file_set(icon, SYNTHPOD_DATA_DIR"/synthpod.edj",
"/synthpod/modlist/close");
evas_object_smart_callback_add(icon, "clicked", _modlist_icon_clicked, mod);
evas_object_show(icon);
@@ -2865,8 +2864,7 @@ _modlist_content_get(void *data, Evas_Object *obj, const char *part)
Evas_Object *icon = elm_icon_add(lay);
if(icon)
{
- //elm_icon_standard_set(icon, "arrow_up");
- elm_layout_file_set(icon, SYNTHPOD_DATA_DIR"/synthpod.edj",
+ elm_image_file_set(icon, SYNTHPOD_DATA_DIR"/synthpod.edj",
"/synthpod/modlist/expand");
evas_object_smart_callback_add(icon, "clicked", _modlist_toggle_clicked, mod);
evas_object_show(icon);
@@ -4372,7 +4370,7 @@ sp_ui_new(Evas_Object *win, const LilvWorld *world, sp_ui_driver_t *driver,
Evas_Object *icon = elm_icon_add(hbox);
if(icon)
{
- elm_layout_file_set(icon, SYNTHPOD_DATA_DIR"/synthpod.edj",
+ elm_image_file_set(icon, SYNTHPOD_DATA_DIR"/synthpod.edj",
"/omk/logo");
evas_object_size_hint_min_set(icon, 128, 128);
evas_object_size_hint_max_set(icon, 256, 256);