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);
------------------------------------------------------------------------------
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-svn mailing list
enlightenment-...@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
------------------------------------------------------------------------------
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