It looks, when content is pushed, it adds _content_del callback for
EVAS_CALLBACK_DEL.
and it removed from the stack in _content_del
------------------------------------
Let's run together for the best moment!
-Regards, Hermet-
-----Original Message-----
From: "Mike Blumenkrantz"<m...@zentific.com>
To: "ChunEon Park"<her...@naver.com>
Cc: "Enlightenment develo"<enlightenment-devel@lists.sourceforge.net>
Sent: 11-10-12(수) 17:15:10
Subject: Re: [E-devel] E SVN: discomfitor trunk/elementary/src/lib
On Wed, 12 Oct 2011 17:02:33 +0900
ChunEon Park<her...@naver.com> wrote:
> Yes. it's the convenient API for users.
> But they can call the evas_object_del to delete the content,
> or if it's a top item, they can call pager_content_pop API.
> That's all.
> ------------------------------------
> Let's run together for the best moment!
> -Regards, Hermet-
>
> -----Original Message-----
> From: "Mike Blumenkrantz"<m...@zentific.com>
> To: "ChunEon Park"<her...@naver.com>
> Cc: "Enlightenment develo"<enlightenment-devel@lists.sourceforge.net>
> Sent: 11-10-12(수) 16:18:22
> Subject: Re: [E-devel] E SVN: discomfitor trunk/elementary/src/lib
> On Wed, 12 Oct 2011 16:06:19 +0900
> ChunEon Park<her...@naver.com> wrote:
> > same.
> > ------------------------------------
> > Let's run together for the best moment!
> > -Regards, Hermet-
> >
> > -----Original Message-----
> > From: "Mike Blumenkrantz"<m...@zentific.com>
> > To: "Enlightenment developer
> > list"<enlightenment-devel@lists.sourceforge.net> Cc: her...@naver.com
> > Sent: 11-10-12(수) 14:59:03
> > Subject: Re: [E-devel] E SVN: discomfitor trunk/elementary/src/lib
> > On Wed, 12 Oct 2011 14:50:44 +0900
> > ChunEon Park<her...@naver.com> wrote:
> > >
> > > they can call evas_object_del and content_pop for subobj.
> > > ------------------------------------
> > > Let's run together for the best moment!
> > > -Regards, Hermet-
> > >
> > > -----Original Message-----
> > > From: "Enlightenment SVN"<no-re...@enlightenment.org>
> > > To: enlightenment-...@lists.sourceforge.net
> > > Cc:
> > > Sent: 11-10-12(수) 06:06:59
> > > Subject: E SVN: discomfitor trunk/elementary/src/lib
> > > Log:
> > > add elm_pager_content_del() for deleting arbitrary pages from a pager
> > >
> > > Author: discomfitor
> > > Date: 2011-10-11 14:06:59 -0700 (Tue, 11 Oct 2011)
> > > New Revision: 63993
> > > Trac: http://trac.enlightenment.org/e/changeset/63993
> > > Modified:
> > > trunk/elementary/src/lib/Elementary.h.in
> > > trunk/elementary/src/lib/elm_pager.c Modified:
> > > trunk/elementary/src/lib/Elementary.h.in
> > > =================================================================== ---
> > > trunk/elementary/src/lib/Elementary.h.in 2011-10-11 21:05:32 UTC (rev
> > > 63992) +++ trunk/elementary/src/lib/Elementary.h.in 2011-10-11 21:06:59
> > > UTC (rev 63993) @@ -19692,6 +19692,14 @@ */
> > > EAPI void elm_pager_content_push(Evas_Object *obj, Evas_Object *content)
> > > EINA_ARG_NONNULL(1); /**
> > > + * @brief Delete an arbitrary page from the stack
> > > + * @param obj The pager object
> > > + * @param subobj The content object to remove
> > > + * This removes a content item from the pager stack. If necessary,
> > > elm_pager_content_pop()
> > > + * will be called to animate a change.
> > > + */
> > > + EAPI void elm_pager_content_del(Evas_Object *obj, Evas_Object *subobj)
> > > EINA_ARG_NONNULL(1, 2);
> > > + /**
> > > * @brief Pop the object that is on top of the stack
> > > *
> > > * @param obj The pager object
> > > Modified: trunk/elementary/src/lib/elm_pager.c
> > > ===================================================================
> > > --- trunk/elementary/src/lib/elm_pager.c 2011-10-11 21:05:32 UTC (rev
> > > 63992) +++ trunk/elementary/src/lib/elm_pager.c 2011-10-11 21:06:59 UTC
> > > (rev 63993) @@ -372,6 +372,21 @@
> > > }
> > >
> > > EAPI void
> > > +elm_pager_content_del(Evas_Object *obj, Evas_Object *subobj)
> > > +{
> > > + ELM_CHECK_WIDTYPE(obj, widtype);
> > > + Widget_Data *wd = elm_widget_data_get(obj);
> > > + if (!subobj) return;
> > > + if (!wd) return;
> > > + if (!wd->stack) return;
> > > +
> > > + if (subobj == wd->top->content)
> > > + elm_pager_content_pop(obj);
> > > + else
> > > + _content_del(obj, NULL, subobj, NULL);
> > > +}
> > > +
> > > +EAPI void
> > > elm_pager_content_pop(Evas_Object *obj)
> > > {
> > > ELM_CHECK_WIDTYPE(obj, widtype);
> > not the same thing.
> not same!
even if you call evas_object_del it's still in the pager's stack list and will
cause more problems later because of this.
--
Mike Blumenkrantz
Zentific: Coding in binary since '10.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel