[elm] Oopsie--.

SVN revision: 76131
This commit is contained in:
Gustavo Lima Chaves 2012-09-04 14:10:00 +00:00
parent 30cc66d90d
commit b76a658b9d
1 changed files with 8 additions and 7 deletions

View File

@ -678,11 +678,12 @@ static Evas_Object *
_elm_ctxpopup_smart_content_get(const Evas_Object *obj, _elm_ctxpopup_smart_content_get(const Evas_Object *obj,
const char *part) 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); 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; return sd->content;
} }
@ -692,12 +693,12 @@ _elm_ctxpopup_smart_content_unset(Evas_Object *obj,
{ {
Evas_Object *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); 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; content = sd->content;
if (!content) return NULL; if (!content) return NULL;