ELM_SAFE_FREE(sd->scr, evas_object_del);
ELM_SAFE_FREE(sd->content, evas_object_del);
ELM_SAFE_FREE(sd->title_text, eina_stringshare_del);
+ //TIZEN_ONLY(20160922): add subtitle text
+ ELM_SAFE_FREE(sd->subtitle_text, eina_stringshare_del);
+ //
eo_do_super(obj, MY_CLASS, evas_obj_smart_del());
}
}
if (sd->title_icon)
elm_layout_signal_emit(sd->main_layout, "elm,state,title,icon,visible", "elm");
+ //TIZEN_ONLY(20160922): add subtitle text
+ if (sd->subtitle_text)
+ {
+ elm_layout_text_set(sd->main_layout, "elm,text,subtitle", sd->subtitle_text);
+ elm_layout_signal_emit(sd->main_layout, "elm,state,subtitle,text,visible", "elm");
+ }
+ //
_populate_theme_scroll(sd);
if (!sd->scroll && sd->theme_scroll)
return EINA_TRUE;
}
+//TIZEN_ONLY(20160922): add subtitle text
+static Eina_Bool
+_subtitle_text_set(Evas_Object *obj,
+ const char *text)
+{
+ ELM_POPUP_DATA_GET(obj, sd);
+
+ if (sd->subtitle_text == text) return EINA_TRUE;
+
+ eina_stringshare_replace(&sd->subtitle_text, text);
+
+ //bare edje here because we're inside the hook, already
+ edje_object_part_text_escaped_set
+ (elm_layout_edje_get(sd->main_layout), "elm.text.subtitle", text);
+
+ if (sd->subtitle_text)
+ elm_object_signal_emit(sd->main_layout, "elm,state,subtitle,text,visible", "elm");
+ else
+ elm_object_signal_emit(sd->main_layout, "elm,state,subtitle,text,hidden", "elm");
+
+ edje_object_message_signal_process(elm_layout_edje_get(sd->main_layout));
+
+ return EINA_TRUE;
+}
+//
+
static Eina_Bool
_content_text_set(Evas_Object *obj,
const char *text)
int_ret = _content_text_set(obj, label);
else if (!strcmp(part, "title,text"))
int_ret = _title_text_set(obj, label);
+ //TIZEN_ONLY(20160922): add subtitle text
+ else if(!strcmp(part, "subtitle,text"))
+ int_ret = _subtitle_text_set(obj, label);
+ //
else
int_ret = elm_layout_text_set(_pd->main_layout, part, label);
return sd->title_text;
}
+//TIZEN_ONLY(20160922): add subtitle text
+static const char *
+_subtitle_text_get(const Elm_Popup_Data *sd)
+{
+ return sd->subtitle_text;
+}
+//
+
static const char *
_content_text_get(const Elm_Popup_Data *sd)
{
text = _content_text_get(_pd);
else if (!strcmp(part, "title,text"))
text = _title_text_get(_pd);
+ //TIZEN_ONLY(20160922): add subtitle text
+ else if (!strcmp(part, "subtitle,text"))
+ text = _subtitle_text_get(_pd);
+ //
else
text = elm_layout_text_get(_pd->main_layout, part);