static const char PREV_BTN_PART[] = "elm.swallow.prev_btn";
static const char NEXT_BTN_PART[] = "elm.swallow.next_btn";
static const char ICON_PART[] = "elm.swallow.icon";
+static const char TITLE_PART[] = "elm.text.title";
+static const char SUBTITLE_PART[] = "elm.text.subtitle";
static const char SIG_TRANSITION_FINISHED[] = "transition,finished";
static const char SIG_TITLE_CLICKED[] = "title,clicked";
return;
}
- ao =_access_object_get(it, "elm.text.title");
+ ao =_access_object_get(it, TITLE_PART);
if (ao) elm_object_focus_set(ao, EINA_TRUE);
else if ((it->title_icon) &&
(elm_widget_can_focus_get(it->title_icon) ||
if (is_access)
{
- if (!_access_object_get(it, "elm.text.title"))
+ if (!_access_object_get(it, TITLE_PART))
{
ao =_elm_access_edje_object_part_object_register
- (WIDGET(it), VIEW(it), "elm.text.title");
+ (WIDGET(it), VIEW(it), TITLE_PART);
_elm_access_text_set(_elm_access_object_get(ao),
ELM_ACCESS_TYPE, E_("title"));
}
- if (!_access_object_get(it, "elm.text.subtitle"))
+ if (!_access_object_get(it, SUBTITLE_PART))
{
ao =_elm_access_edje_object_part_object_register
- (WIDGET(it), VIEW(it), "elm.text.subtitle");
+ (WIDGET(it), VIEW(it), SUBTITLE_PART);
_elm_access_text_set(_elm_access_object_get(ao),
ELM_ACCESS_TYPE, E_("sub title"));
}
{
if (it->title_label)
_elm_access_edje_object_part_object_unregister
- (WIDGET(it), VIEW(it), "elm.text.title");
+ (WIDGET(it), VIEW(it), TITLE_PART);
if (it->subtitle_label)
_elm_access_edje_object_part_object_unregister
- (WIDGET(it), VIEW(it), "elm.text.subtitle");
+ (WIDGET(it), VIEW(it), SUBTITLE_PART);
EINA_INLIST_FOREACH(it->text_list, pair)
_elm_access_edje_object_part_object_unregister
char buf[1024];
if ((!part) || (!strcmp(part, "default")) ||
- (!strcmp(part, "elm.text.title")))
+ (!strcmp(part, TITLE_PART)))
{
eina_stringshare_replace(&nit->title_label, label);
if (label)
elm_object_signal_emit(VIEW(it), "elm,state,title_label,show", "elm");
else
elm_object_signal_emit(VIEW(it), "elm,state,title_label,hide", "elm");
- elm_object_part_text_set(VIEW(it), "elm.text.title", label);
+ elm_object_part_text_set(VIEW(it), TITLE_PART, label);
}
else if (!strcmp("subtitle", part))
{
elm_object_signal_emit(VIEW(it), "elm,state,subtitle,show", "elm");
else
elm_object_signal_emit(VIEW(it), "elm,state,subtitle,hide", "elm");
- elm_object_part_text_set(VIEW(it), "elm.text.subtitle", label);
+ elm_object_part_text_set(VIEW(it), SUBTITLE_PART, label);
}
else
{
char buf[1024];
if (!part || !strcmp(part, "default"))
- snprintf(buf, sizeof(buf), "elm.text.title");
+ snprintf(buf, sizeof(buf), TITLE_PART);
else if (!strcmp("subtitle", part))
- snprintf(buf, sizeof(buf), "elm.text.subtitle");
+ snprintf(buf, sizeof(buf), SUBTITLE_PART);
else
snprintf(buf, sizeof(buf), "%s", part);
_item_style_set(it, item_style);
if (title_label)
- _item_text_set_hook((Elm_Object_Item *)it, "elm.text.title", title_label);
+ _item_text_set_hook((Elm_Object_Item *)it, TITLE_PART, title_label);
//title buttons
if ((!prev_btn) && sd->auto_pushed && prev_it)
/* access */
if (_elm_config->access_mode)
{
- ao = _access_object_get(top_it, "elm.text.title");
+ ao = _access_object_get(top_it, TITLE_PART);
if (ao) l = eina_list_append(l, ao);
- ao = _access_object_get(top_it, "elm.text.subtitle");
+ ao = _access_object_get(top_it, SUBTITLE_PART);
if (ao) l = eina_list_append(l, ao);