hermet pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=1932e6713104bfe752097dab8b6902ed86b58493

commit 1932e6713104bfe752097dab8b6902ed86b58493
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Fri Dec 13 11:21:08 2013 +0900

    elementary/ctxpopup - disable the contents when they are exist.
---
 src/lib/elc_ctxpopup.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/lib/elc_ctxpopup.c b/src/lib/elc_ctxpopup.c
index f0db8a2..7e53a02 100644
--- a/src/lib/elc_ctxpopup.c
+++ b/src/lib/elc_ctxpopup.c
@@ -1109,8 +1109,10 @@ _elm_ctxpopup_smart_disable(Eo *obj, void *_pd, va_list 
*list)
 
    eo_do_super(obj, MY_CLASS, elm_wdg_disable(&int_ret));
    if (!int_ret) return;
-
-   elm_object_disabled_set(sd->list, elm_widget_disabled_get(obj));
+   if (sd->list)
+     elm_object_disabled_set(sd->list, elm_widget_disabled_get(obj));
+   else if (sd->content)
+     elm_object_disabled_set(sd->list, elm_widget_disabled_get(obj));
 
    if (ret) *ret = EINA_TRUE;
 }

-- 


Reply via email to