obj = elm_check_add(parent);
elm_object_style_set(obj, "toggle");
- elm_object_text_part_set(obj, "on", "ON");
- elm_object_text_part_set(obj, "off", "OFF");
+ elm_object_part_text_set(obj, "on", "ON");
+ elm_object_part_text_set(obj, "off", "OFF");
return obj;
}
EINA_DEPRECATED EAPI extern inline void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1)
{
- elm_object_text_part_set(obj, "on", onlabel);
- elm_object_text_part_set(obj, "off", offlabel);
+ elm_object_part_text_set(obj, "on", onlabel);
+ elm_object_part_text_set(obj, "off", offlabel);
}
EINA_DEPRECATED EAPI extern inline void elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1)
{
- if (onlabel) *onlabel = elm_object_text_part_get(obj, "on");
- if (offlabel) *offlabel = elm_object_text_part_get(obj, "off");
+ if (onlabel) *onlabel = elm_object_part_text_get(obj, "on");
+ if (offlabel) *offlabel = elm_object_part_text_get(obj, "off");
}
EINA_DEPRECATED EAPI extern inline void elm_toggle_state_set(Evas_Object *obj, Eina_Bool state) EINA_ARG_NONNULL(1)