Nope.
When you call elm_ctxpopup_add() it calls elm_ctxpopup_hover_parent_set().
In elm_ctxpopup_hover_parent_set() calls _parent_cut_off(). At this
moment there is no parent yet.
So there is a possibility that parent is NULL when _parent_cut_off() is called.
Of course we can check parent and do not call _parent_cut_off() in
elm_ctxpopup_hover_parent_set(),
but this is a matter of choice. I just chose to fix _parent_cut_off().
Thanks.

Daniel Juyung Seo (SeoZ)

On Tue, May 22, 2012 at 5:18 PM, ChunEon Park <her...@naver.com> wrote:
> I don't understand how ctxpopup is added without parent.
>
>
>
> If It is so you should fix that point first.
>
>
>
>
> ------------------------------------
>
> -Regards, Hermet-You should fix that point first.
>
>
>
> -----Original Message-----
> From: "Daniel Juyung Seo"&lt;seojuyu...@gmail.com&gt;
> To: &lt;enlightenment-devel@lists.sourceforge.net&gt;;
> Cc: &lt;enlightenment-...@lists.sourceforge.net&gt;;
> Sent: 2012-05-22 (화) 17:11:01
> Subject: Re: [E-devel] E SVN: hermet trunk/elementary/src/lib
>
> Nope.
> When you call elm_ctxpopup_add(), wd-&gt;parent is NULL.
> It doesn't print out warnings even wd-&gt;parent is NULL but it is better
> to avoid doing a series of unnecessary calls.
> So I reverted your commit.
> Thanks.
>
> Daniel Juyung Seo (SeoZ)
>
> On Tue, May 22, 2012 at 4:09 PM, Enlightenment SVN
> &lt;no-reply&gt;@enlightenment.org&gt; wrote:
> &gt; Log:
> &gt; elementary/ctxpopup - but there would be no parent NULL case.
> &gt;
> &gt;
> &gt;
> &gt; Author:       hermet
> &gt; Date:         2012-05-22 00:09:13 -0700 (Tue, 22 May 2012)
> &gt; New Revision: 71303
> &gt; Trac:         http://trac.enlightenment.org/e/changeset/71303
> &gt;
> &gt; Modified:
> &gt;  trunk/elementary/src/lib/elc_ctxpopup.c
> &gt;
> &gt; Modified: trunk/elementary/src/lib/elc_ctxpopup.c
> &gt; ===================================================================
> &gt; --- trunk/elementary/src/lib/elc_ctxpopup.c     2012-05-22 07:05:07 UTC 
> (rev 71302)
> &gt; +++ trunk/elementary/src/lib/elc_ctxpopup.c     2012-05-22 07:09:13 UTC 
> (rev 71303)
> &gt; @@ -215,7 +215,7 @@
> &gt;  _parent_cut_off(Evas_Object *obj)
> &gt;  {
> &gt;    Widget_Data *wd = elm_widget_data_get(obj);
> &gt; -   if (!wd || !wd-&gt;parent) return;
> &gt; +   if (!wd) return;
> &gt;
> &gt;    evas_object_event_callback_del_full(wd-&gt;parent,
> &gt;                                        EVAS_CALLBACK_DEL,
> &gt;
> &gt;
> &gt; 
> ------------------------------------------------------------------------------
> &gt; Live Security Virtual Conference
> &gt; Exclusive live event will cover all the ways today's security and
> &gt; threat landscape has changed and how IT managers can respond. Discussions
> &gt; will include endpoint security, mobile security and the latest in malware
> &gt; threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> &gt; _______________________________________________
> &gt; enlightenment-svn mailing list
> &gt; enlightenment-...@lists.sourceforge.net
> &gt; https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> enlightenment-devel mailing list
> enlightenment-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to