summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlliver Schinagl <o.schinagl@ultimaker.com>2015-04-23 20:30:53 (GMT)
committerOlliver Schinagl <o.schinagl@ultimaker.com>2015-04-28 05:07:15 (GMT)
commit9c29cc8b84233234ea5728c46f27a05b927c0de4 (patch)
tree236303b9a96925d683b5ce9644e82be32c54a3af
parentc0010ee623a1c77e99944baebbcaacf8dcfba9a1 (diff)
downloadeulogium-9c29cc8b84233234ea5728c46f27a05b927c0de4.zip
eulogium-9c29cc8b84233234ea5728c46f27a05b927c0de4.tar.gz
eulogium-9c29cc8b84233234ea5728c46f27a05b927c0de4.tar.bz2
fix when supplying an icon, we should set an icon, not a func
Signed-off-by: Olliver Schinagl <o.schinagl@ultimaker.com>
-rw-r--r--src/eulogium.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/eulogium.c b/src/eulogium.c
index 2ccdcce..e08522a 100644
--- a/src/eulogium.c
+++ b/src/eulogium.c
@@ -91,6 +91,8 @@ Evas_Object *eulogium_button_list_sorted_insert(Evas_Object *list, const char *l
if (label)
elm_object_text_set(button, label);
if (icon)
+ elm_object_part_content_set(button, "icon", icon);
+ if (func)
evas_object_smart_callback_add(button, "clicked", func, data);
evas_object_smart_callback_add(button, "focused", _button_focus_cb, NULL);
evas_object_smart_callback_add(button, "unfocused", _button_unfocus_cb, NULL);