snprintf(buf, sizeof(buf), "elm.swallow.btn%d", button_type);\r
}\r
if (btn_label)\r
- elm_button_label_set(btn, btn_label);\r
+ elm_object_text_set(btn, btn_label);\r
if (icon)\r
elm_button_icon_set(btn, icon);\r
elm_object_focus_allow_set(btn, EINA_FALSE);\r
elm_layout_content_set(obj, "item", *item);
if (it->text)
- elm_button_label_set(*item, it->text);
+ elm_object_text_set(*item, it->text);
if (it->icon_path)
*icon = _create_item_icon(*item, it, "elm.swallow.icon");
if (label != NULL)
{
it->text = eina_stringshare_add(label);
- elm_button_label_set(it->base_item, it->text);
+ elm_object_text_set(it->base_item, it->text);
}
if (it->wd->disabled || it->disabled)
elm_widget_disabled_set(it->base_item, EINA_TRUE);
str = _get_i18n_string(data, PM_STR);
if (str)
{
- elm_button_label_set(wd->time[TIME_AMPM], str);
+ elm_object_text_set(wd->time[TIME_AMPM], str);
free(str);
}
wd->hour += HOUR_12H_MAXIMUM;
str = _get_i18n_string(data, AM_STR);
if (str)
{
- elm_button_label_set(wd->time[TIME_AMPM], str);
+ elm_object_text_set(wd->time[TIME_AMPM], str);
free(str);
}
wd->hour -= HOUR_12H_MAXIMUM;
i18n_str = _get_i18n_string(data, PM_STR);
if (i18n_str)
{
- elm_button_label_set(wd->time[TIME_AMPM], i18n_str);
+ elm_object_text_set(wd->time[TIME_AMPM], i18n_str);
free(i18n_str);
}
}
i18n_str = _get_i18n_string(data, AM_STR);
if (i18n_str)
{
- elm_button_label_set(wd->time[TIME_AMPM], i18n_str);
+ elm_object_text_set(wd->time[TIME_AMPM], i18n_str);
free(i18n_str);
}
}
i18n_str = _get_i18n_string(obj, PM_STR);
if (i18n_str)
{
- elm_button_label_set(wd->time[TIME_AMPM], i18n_str);
+ elm_object_text_set(wd->time[TIME_AMPM], i18n_str);
free(i18n_str);
}
}
i18n_str = _get_i18n_string(obj, AM_STR);
if (i18n_str)
{
- elm_button_label_set(wd->time[TIME_AMPM], i18n_str);
+ elm_object_text_set(wd->time[TIME_AMPM], i18n_str);
free(i18n_str);
}
}
wd->check[idx]=elm_check_add(wd->base);
elm_widget_sub_object_add(obj, wd->check[idx]);
evas_object_smart_callback_add(wd->check[idx], "changed", _check_clicked, obj);
- elm_check_label_set(wd->check[idx], label[idx] );
+ elm_object_text_set(wd->check[idx], label[idx] );
edje_object_part_swallow(wd->base, day_name[idx], wd->check[idx]);
elm_object_style_set(wd->check[idx], style_name[idx]);
}
if (count > 0)
{
snprintf(buf, sizeof(buf), "... + %d", count);
- elm_label_label_set(wd->end, buf);
+ elm_object_text_set(wd->end, buf);
evas_object_size_hint_min_get(wd->end, &w_label_count, NULL);
}
count++;
snprintf(buf, sizeof(buf), "... + %d", count);
- elm_label_label_set(wd->end, buf);
+ elm_object_text_set(wd->end, buf);
evas_object_size_hint_min_get(wd->end, &w_label_count, NULL);
elm_box_pack_end(wd->box, wd->end);
btn = elm_button_add(obj);
snprintf(buf, sizeof(buf), "popup_button/%s", elm_widget_style_get(obj));
elm_object_style_set(btn, buf);
- elm_button_label_set(btn, text);
+ elm_object_text_set(btn, text);
adata->response_id = response_id;
adata->obj = obj;
adata->btn = btn;
Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return NULL;
- return elm_label_label_get(wd->desc_label);
+ return elm_object_text_get(wd->desc_label);
}
/**
snprintf(buf, sizeof(buf), "searchbar/%s", elm_widget_style_get(obj));
elm_object_style_set(wd->cancel_btn, buf);
- elm_button_label_set(wd->cancel_btn, "Cancel");
+ elm_object_text_set(wd->cancel_btn, "Cancel");
evas_object_smart_callback_add(wd->cancel_btn, "clicked", _cancel_clicked, obj);
elm_widget_sub_object_add(obj, wd->cancel_btn);