_elm_ctxpopup_smart_content_get(const Evas_Object *obj,
const char *part)
{
- if ((part) && (strcmp(part, "default"))) return NULL;
- return ELM_CONTAINER_CLASS(_elm_ctxpopup_parent_sc)->content_get(obj, part);
-
ELM_CTXPOPUP_DATA_GET(obj, sd);
+ if ((part) && (strcmp(part, "default")))
+ return ELM_CONTAINER_CLASS(_elm_ctxpopup_parent_sc)->content_get
+ (obj, part);
+
return sd->content;
}
{
Evas_Object *content;
- if ((part) && (strcmp(part, "default"))) return NULL;
- return ELM_CONTAINER_CLASS(_elm_ctxpopup_parent_sc)->content_unset
- (obj, part);
-
ELM_CTXPOPUP_DATA_GET(obj, sd);
+ if ((part) && (strcmp(part, "default")))
+ return ELM_CONTAINER_CLASS(_elm_ctxpopup_parent_sc)->content_unset
+ (obj, part);
+
content = sd->content;
if (!content) return NULL;