static void
_btn_clicked_cb(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- const char *lbl = elm_button_label_get(obj);
+ const char *lbl = elm_object_text_get(obj);
printf("%s: %s\n", lbl, (char *)data);
eina_stringshare_del(data);
}
char *ptr;
double t;
App_Data *app = data;
- const char *lbl = elm_button_label_get(btn);
+ const char *lbl = elm_object_text_get(btn);
ptr = strchr(lbl, ':');
ptr += 2;
static void
btn_extension_click_cb(void *data __UNUSED__, Evas_Object *btn, void *ev __UNUSED__)
{
- const char *lbl = elm_button_label_get(btn);
+ const char *lbl = elm_object_text_get(btn);
if (!strncmp(lbl, "Load", 4))
{
}
EAPI void
-elm_button_label_set(Evas_Object *obj, const char *label)
-{
- _elm_button_label_set(obj, NULL, label);
-}
-
-EAPI const char *
-elm_button_label_get(const Evas_Object *obj)
-{
- return _elm_button_label_get(obj, NULL);
-}
-
-
-EAPI void
elm_button_icon_set(Evas_Object *obj, Evas_Object *icon)
{
_content_set_hook(obj, "icon", icon);
elm_win_resize_object_add(win, bg);
evas_object_show(bg);
bt = elm_button_add(win);
- elm_button_label_set(bt, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~-_=+\\|]}[{;:'\",<.>/?");
+ elm_object_text_set(bt, " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789~-_=+\\|]}[{;:'\",<.>/?");
elm_win_resize_object_add(win, bt);
ecore_main_loop_iterate();
evas_object_del(win);