* @until }
*
* This call elm_layout_data_get() is used to fetch the string based on the key,
- * and elm_object_text_part_set() will set the part defined in the theme as
+ * and elm_object_part_text_set() will set the part defined in the theme as
* "example/title" to contain this string. This key "example/title" has nothing
* special. It's just an arbitrary convention that we are using in this example.
* Every string in this example referencing a part of this theme will be of the
elm_win_resize_object_add(win, o);
evas_object_show(o);
-elm_object_text_part_set(o, "left", "left");
-elm_object_text_part_set(o, "center", "center");
-elm_object_text_part_set(o, "right", "right");
+elm_object_part_text_set(o, "left", "left");
+elm_object_part_text_set(o, "center", "center");
+elm_object_part_text_set(o, "right", "right");
elm_actionslider_indicator_pos_set(o, ELM_ACTIONSLIDER_CENTER);
#include "widget_preview_tmpl_foot.c"
evas_object_show(icon);
elm_object_content_part_set(layout, "elm.swallow.content", icon);
-elm_object_text_part_set(layout, "elm.text.title", "Layout");
+elm_object_part_text_set(layout, "elm.text.title", "Layout");
#include "widget_preview_tmpl_foot.c"
snprintf(buf, sizeof(buf), "%s/objects/font_preview.edj", elm_app_data_dir_get());
preview = elm_layout_add(win);
elm_layout_file_set(preview, buf, "font_preview");
- elm_object_text_part_set(preview, "elm.text", "Preview Text — 我真的会写中文");
+ elm_object_part_text_set(preview, "elm.text", "Preview Text — 我真的会写中文");
evas_object_size_hint_weight_set(preview, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(preview, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(preview);
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_RIGHT);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_RIGHT);
- elm_object_text_part_set(as, "left", "Snooze");
- elm_object_text_part_set(as, "center", NULL);
- elm_object_text_part_set(as, "right", "Stop");
+ elm_object_part_text_set(as, "left", "Snooze");
+ elm_object_part_text_set(as, "center", NULL);
+ elm_object_part_text_set(as, "right", "Stop");
elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT |
ELM_ACTIONSLIDER_RIGHT);
evas_object_smart_callback_add(as, "pos_changed",
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_CENTER);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_CENTER);
- elm_object_text_part_set(as, "left", "Snooze");
- elm_object_text_part_set(as, "center", NULL);
- elm_object_text_part_set(as, "right", "Stop");
+ elm_object_part_text_set(as, "left", "Snooze");
+ elm_object_part_text_set(as, "center", NULL);
+ elm_object_part_text_set(as, "right", "Stop");
elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT |
ELM_ACTIONSLIDER_RIGHT);
evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL);
ELM_ACTIONSLIDER_RIGHT);
elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_CENTER |
ELM_ACTIONSLIDER_RIGHT);
- elm_object_text_part_set(as, "left", NULL);
- elm_object_text_part_set(as, "center", "Accept");
- elm_object_text_part_set(as, "right", "Reject");
+ elm_object_part_text_set(as, "left", NULL);
+ elm_object_part_text_set(as, "center", "Accept");
+ elm_object_part_text_set(as, "right", "Reject");
evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL);
evas_object_show(as);
elm_box_pack_end(bx, as);
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_LEFT);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_LEFT);
- elm_object_text_part_set(as, "left", NULL);
- elm_object_text_part_set(as, "center", "Accept");
- elm_object_text_part_set(as, "right", "Reject");
+ elm_object_part_text_set(as, "left", NULL);
+ elm_object_part_text_set(as, "center", "Accept");
+ elm_object_part_text_set(as, "right", "Reject");
elm_object_text_set(as, "Go");
evas_object_smart_callback_add(as, "pos_changed",
_position_change_magnetic_cb, NULL);
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_LEFT);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_ALL);
- elm_object_text_part_set(as, "left", "Left");
- elm_object_text_part_set(as, "center", "Center");
- elm_object_text_part_set(as, "right", "Right");
+ elm_object_part_text_set(as, "left", "Left");
+ elm_object_part_text_set(as, "center", "Center");
+ elm_object_part_text_set(as, "right", "Right");
elm_object_text_set(as, "Go");
evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL);
evas_object_show(as);
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_CENTER);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_CENTER);
- elm_object_text_part_set(as, "left", "Enable");
- elm_object_text_part_set(as, "center", "Magnet");
- elm_object_text_part_set(as, "right", "Disable");
+ elm_object_part_text_set(as, "left", "Enable");
+ elm_object_part_text_set(as, "center", "Magnet");
+ elm_object_part_text_set(as, "right", "Disable");
evas_object_smart_callback_add(as, "pos_changed",
_magnet_enable_disable_cb, NULL);
evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 3");
- elm_object_text_part_set(bb, "info", "10:32 4/11/2008");
+ elm_object_part_text_set(bb, "info", "10:32 4/11/2008");
elm_object_content_part_set(bb, "icon", ic);
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
evas_object_show(ic);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 2");
- elm_object_text_part_set(bb, "info", "7:16 27/10/2008");
+ elm_object_part_text_set(bb, "info", "7:16 27/10/2008");
elm_object_content_part_set(bb, "icon", ic);
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
evas_object_show(ic);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 1");
- elm_object_text_part_set(bb, "info", "20:47 18/6/2008");
+ elm_object_part_text_set(bb, "info", "20:47 18/6/2008");
elm_object_content_part_set(bb, "icon", ic);
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
evas_object_show(ic);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 1");
- elm_object_text_part_set(bb, "info", "Corner: bottom_right");
+ elm_object_part_text_set(bb, "info", "Corner: bottom_right");
elm_object_content_part_set(bb, "icon", ic);
elm_bubble_corner_set(bb, "bottom_right");
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 2");
- elm_object_text_part_set(bb, "info", "10:32 4/11/2008");
+ elm_object_part_text_set(bb, "info", "10:32 4/11/2008");
evas_object_smart_callback_add(bb, "clicked", _print_clicked, NULL);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
evas_object_size_hint_align_set(bb, EVAS_HINT_FILL, EVAS_HINT_FILL);
{
Evas_Object *tg = elm_check_add(win);
elm_object_style_set(tg, "toggle");
- elm_object_text_part_set(tg, "on", "Yes");
- elm_object_text_part_set(tg, "off", "No");
+ elm_object_part_text_set(tg, "on", "Yes");
+ elm_object_part_text_set(tg, "off", "No");
elm_box_pack_end(bx, tg);
my_show(tg);
}
static void
_clicked_cb(void *data, Evas_Object *obj, void *event_info __UNUSED__)
{
- elm_object_text_part_set(data, "text", elm_object_text_get(obj));
+ elm_object_part_text_set(data, "text", elm_object_text_get(obj));
}
void
elm_object_text_set(tg, "Icon sized to toggle");
elm_object_content_part_set(tg, "icon", ic);
elm_check_state_set(tg, 1);
- elm_object_text_part_set(tg, "on", "Yes");
- elm_object_text_part_set(tg, "off", "No");
+ elm_object_part_text_set(tg, "on", "Yes");
+ elm_object_part_text_set(tg, "off", "No");
elm_box_pack_end(bx, tg);
evas_object_show(tg);
evas_object_show(ic);
tg = elm_check_add(win);
elm_object_style_set(tg, "toggle");
elm_object_text_set(tg, "Label Only");
- elm_object_text_part_set(tg, "on", "Big long fun times label");
- elm_object_text_part_set(tg, "off", "Small long happy fun label");
+ elm_object_part_text_set(tg, "on", "Big long fun times label");
+ elm_object_part_text_set(tg, "off", "Small long happy fun label");
elm_box_pack_end(bx, tg);
evas_object_show(tg);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 3");
- elm_object_text_part_set(bb, "info", "10:32 4/11/2008");
+ elm_object_part_text_set(bb, "info", "10:32 4/11/2008");
elm_object_content_part_set(bb, "icon", ic);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 2");
- elm_object_text_part_set(bb, "info", "7:16 27/10/2008");
+ elm_object_part_text_set(bb, "info", "7:16 27/10/2008");
elm_object_content_part_set(bb, "icon", ic);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
bb = elm_bubble_add(win);
elm_object_text_set(bb, "Message 1");
- elm_object_text_part_set(bb, "info", "20:47 18/6/2008");
+ elm_object_part_text_set(bb, "info", "20:47 18/6/2008");
elm_object_content_part_set(bb, "icon", ic);
evas_object_show(ic);
evas_object_size_hint_weight_set(bb, EVAS_HINT_EXPAND, 0.0);
if (p->label) elm_object_text_set(obj, p->label);
if (p->icon)
elm_object_content_part_set(obj, "icon", p->icon);
- if (p->info) elm_object_text_part_set(obj, "info", p->info);
+ if (p->info) elm_object_part_text_set(obj, "info", p->info);
if (p->content) elm_object_content_set(obj, p->content);
}
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
- elm_object_text_part_set(obj, "info", param->s);
+ elm_object_part_text_set(obj, "info", param->s);
return EINA_TRUE;
}
}
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
- param->s = elm_object_text_part_get(obj, "info");
+ param->s = elm_object_part_text_get(obj, "info");
return EINA_TRUE;
}
}
elm_object_content_part_set(obj, "icon", p->icon);
if (p->on)
- elm_object_text_part_set(obj, "on", p->on);
+ elm_object_part_text_set(obj, "on", p->on);
if (p->off)
- elm_object_text_part_set(obj, "off", p->off);
+ elm_object_part_text_set(obj, "off", p->off);
if (p->state_exists)
elm_check_state_set(obj, p->state);
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
- elm_object_text_part_set(obj, "on", param->s);
+ elm_object_part_text_set(obj, "on", param->s);
return EINA_TRUE;
}
}
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
- elm_object_text_part_set(obj, "off", param->s);
+ elm_object_part_text_set(obj, "off", param->s);
return EINA_TRUE;
}
}
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
- param->s = elm_object_text_part_get(obj, "on");
+ param->s = elm_object_part_text_get(obj, "on");
return EINA_TRUE;
}
}
{
if (param->type == EDJE_EXTERNAL_PARAM_TYPE_STRING)
{
- param->s = elm_object_text_part_get(obj, "off");
+ param->s = elm_object_part_text_get(obj, "off");
return EINA_TRUE;
}
}
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_RIGHT);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_RIGHT);
- elm_object_text_part_set(as, "left", "Snooze");
- elm_object_text_part_set(as, "right", "Stop");
+ elm_object_part_text_set(as, "left", "Snooze");
+ elm_object_part_text_set(as, "right", "Stop");
elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT |
ELM_ACTIONSLIDER_RIGHT);
evas_object_smart_callback_add(as, "pos_changed",
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_CENTER);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_CENTER);
- elm_object_text_part_set(as, "left", "Snooze");
- elm_object_text_part_set(as, "right", "Stop");
+ elm_object_part_text_set(as, "left", "Snooze");
+ elm_object_part_text_set(as, "right", "Stop");
elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_LEFT |
ELM_ACTIONSLIDER_RIGHT);
evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL);
ELM_ACTIONSLIDER_RIGHT);
elm_actionslider_enabled_pos_set(as, ELM_ACTIONSLIDER_CENTER |
ELM_ACTIONSLIDER_RIGHT);
- elm_object_text_part_set(as, "center", "Accept");
- elm_object_text_part_set(as, "right", "Reject");
+ elm_object_part_text_set(as, "center", "Accept");
+ elm_object_part_text_set(as, "right", "Reject");
evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL);
evas_object_show(as);
elm_box_pack_end(bx, as);
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_LEFT);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_LEFT);
- elm_object_text_part_set(as, "center", "Accept");
- elm_object_text_part_set(as, "right", "Reject");
+ elm_object_part_text_set(as, "center", "Accept");
+ elm_object_part_text_set(as, "right", "Reject");
elm_object_text_set(as, "Go");
evas_object_smart_callback_add(as, "pos_changed",
_position_change_magnetic_cb, NULL);
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_LEFT);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_ALL);
- elm_object_text_part_set(as, "left", "Left");
- elm_object_text_part_set(as, "center", "Center");
- elm_object_text_part_set(as, "right", "Right");
+ elm_object_part_text_set(as, "left", "Left");
+ elm_object_part_text_set(as, "center", "Center");
+ elm_object_part_text_set(as, "right", "Right");
elm_object_text_set(as, "Go");
evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL);
evas_object_show(as);
evas_object_size_hint_align_set(as, EVAS_HINT_FILL, 0);
elm_actionslider_indicator_pos_set(as, ELM_ACTIONSLIDER_CENTER);
elm_actionslider_magnet_pos_set(as, ELM_ACTIONSLIDER_CENTER);
- elm_object_text_part_set(as, "left", "Enable");
- elm_object_text_part_set(as, "center", "Magnet");
- elm_object_text_part_set(as, "right", "Disable");
+ elm_object_part_text_set(as, "left", "Enable");
+ elm_object_part_text_set(as, "center", "Magnet");
+ elm_object_part_text_set(as, "right", "Disable");
evas_object_smart_callback_add(as, "pos_changed",
_magnet_enable_disable_cb, NULL);
evas_object_smart_callback_add(as, "selected", _pos_selected_cb, NULL);
if (title)
{
elm_win_title_set(win, title);
- elm_object_text_part_set(layout, TITLE, title);
+ elm_object_part_text_set(layout, TITLE, title);
}
// Add icon, clock and button to the table
if (title)
{
elm_win_title_set(win, title);
- elm_object_text_part_set(layout, TITLE, title);
+ elm_object_part_text_set(layout, TITLE, title);
}
btn = elm_button_add(win);
* @param label The new text of the label
*
* @note Elementary objects may have many labels (e.g. Action Slider)
+ * @deprecated Use elm_object_part_text_set() instead.
+ * @ingroup General
+ */
+ EINA_DEPRECATED EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
+
+ /**
+ * Set a label of an object
+ *
+ * @param obj The Elementary object
+ * @param part The text part name to set (NULL for the default label)
+ * @param label The new text of the label
+ *
+ * @note Elementary objects may have many labels (e.g. Action Slider)
*
* @ingroup General
*/
- EAPI void elm_object_text_part_set(Evas_Object *obj, const char *part, const char *label);
+ EAPI void elm_object_part_text_set(Evas_Object *obj, const char *part, const char *label);
-#define elm_object_text_set(obj, label) elm_object_text_part_set((obj), NULL, (label))
+#define elm_object_text_set(obj, label) elm_object_part_text_set((obj), NULL, (label))
+
+ /**
+ * Get a label of an object
+ *
+ * @param obj The Elementary object
+ * @param part The text part name to get (NULL for the default label)
+ * @return text of the label or NULL for any error
+ *
+ * @note Elementary objects may have many labels (e.g. Action Slider)
+ * @deprecated Use elm_object_part_text_get() instead.
+ * @ingroup General
+ */
+ EINA_DEPRECATED EAPI const char *elm_object_text_part_get(const Evas_Object *obj, const char *part);
/**
* Get a label of an object
*
* @ingroup General
*/
- EAPI const char *elm_object_text_part_get(const Evas_Object *obj, const char *part);
+ EAPI const char *elm_object_part_text_get(const Evas_Object *obj, const char *part);
-#define elm_object_text_get(obj) elm_object_text_part_get((obj), NULL)
+#define elm_object_text_get(obj) elm_object_part_text_get((obj), NULL)
/**
* Set the text for an objects' part, marking it as translatable.
*
* The string to set as @p text must be the original one. Do not pass the
* return of @c gettext() here. Elementary will translate the string
- * internally and set it on the object using elm_object_text_part_set(),
+ * internally and set it on the object using elm_object_part_text_set(),
* also storing the original string so that it can be automatically
* translated when the language is changed with elm_language_set().
*
/**
* Gets the original string set as translatable for an object
*
- * When setting translated strings, the function elm_object_text_part_get()
+ * When setting translated strings, the function elm_object_part_text_get()
* will return the translation returned by @c gettext(). To get the
* original string use this function.
*
*
* Useful when you want to force reloading of configuration values for
* a profile. If one removes user custom configuration directories,
- * for example, it will force a reload with system values insted.
+ * for example, it will force a reload with system values instead.
*
*/
EAPI void elm_config_reload(void);
* @code
* 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");
* @endcode
*
* Signals that you can add callbacks for are:
* @param onlabel The label displayed when the toggle is in the "on" state
* @param offlabel The label displayed when the toggle is in the "off" state
*
- * @deprecated use elm_object_text_part_set() for "on" and "off" parts
+ * @deprecated use elm_object_part_text_set() for "on" and "off" parts
* instead.
*/
EINA_DEPRECATED EAPI void elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel) EINA_ARG_NONNULL(1);
* @param onlabel A char** to place the onlabel of @p obj into
* @param offlabel A char** to place the offlabel of @p obj into
*
- * @deprecated use elm_object_text_part_get() for "on" and "off" parts
+ * @deprecated use elm_object_part_text_get() for "on" and "off" parts
* instead.
*/
EINA_DEPRECATED EAPI void elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel) EINA_ARG_NONNULL(1);
* @param text The text to set
*
* @ingroup Layout
- * @deprecated use elm_object_text_part_set() instead.
+ * @deprecated use elm_object_part_text_set() instead.
*/
EINA_DEPRECATED EAPI void elm_layout_text_set(Evas_Object *obj, const char *part, const char *text) EINA_ARG_NONNULL(1);
/**
* @return The text set in @p part
*
* @ingroup Layout
- * @deprecated use elm_object_text_part_get() instead.
+ * @deprecated use elm_object_part_text_get() instead.
*/
EINA_DEPRECATED EAPI const char *elm_layout_text_get(const Evas_Object *obj, const char *part) EINA_ARG_NONNULL(1);
/**
*
* @see elm_object_signal_callback_add()
* @see elm_object_signal_emit()
- * @see elm_object_text_part_set()
+ * @see elm_object_part_text_set()
* @see elm_object_content_part_set()
* @see elm_layout_box_append()
* @see elm_layout_table_pack()
*
* This function sets the info of the bubble. Where this appears depends on
* the selected corner.
- * @deprecated use elm_object_text_part_set() instead. (with "info" as the parameter).
+ * @deprecated use elm_object_part_text_set() instead. (with "info" as the parameter).
*/
EINA_DEPRECATED EAPI void elm_bubble_info_set(Evas_Object *obj, const char *info) EINA_ARG_NONNULL(1);
/**
* @return The "info" string of the bubble
*
* This function gets the info text.
- * @deprecated use elm_object_text_part_get() instead. (with "info" as the parameter).
+ * @deprecated use elm_object_part_text_get() instead. (with "info" as the parameter).
*/
EINA_DEPRECATED EAPI const char *elm_bubble_info_get(const Evas_Object *obj) EINA_ARG_NONNULL(1);
/**
}
EAPI void
+elm_object_part_text_set(Evas_Object *obj, const char *part, const char *label)
+{
+ EINA_SAFETY_ON_NULL_RETURN(obj);
+ elm_widget_text_part_set(obj, part, label);
+}
+
+EAPI const char *
+elm_object_part_text_get(const Evas_Object *obj, const char *part)
+{
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, NULL);
+ return elm_widget_text_part_get(obj, part);
+}
+
+EAPI void
elm_object_domain_translatable_text_part_set(Evas_Object *obj, const char *part, const char *domain, const char *text)
{
EINA_SAFETY_ON_NULL_RETURN(obj);
obj = elm_check_add(parent);
elm_object_style_set(obj, "toggle");
- elm_object_text_part_set(obj, "on", E_("ON"));
- elm_object_text_part_set(obj, "off", E_("OFF"));
+ elm_object_part_text_set(obj, "on", E_("ON"));
+ elm_object_part_text_set(obj, "off", E_("OFF"));
return obj;
}
EAPI void
elm_toggle_states_labels_set(Evas_Object *obj, const char *onlabel, const char *offlabel)
{
- 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);
}
EAPI void
elm_toggle_states_labels_get(const Evas_Object *obj, const char **onlabel, const char **offlabel)
{
- 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");
}
EAPI void