Is this a proper API ?
------------------------------------
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-11(화) 15:27:30
Subject: E SVN: mike_m trunk/elementary/src/lib
Log:
elementary: Add elm_pager_animation_disable_set
Signed-off-by: Shilpa Singh <shilpa.si...@samsung.com>
Signed-off-by: Mike McCormack <mj.mccorm...@samsung.com>
Author: mike_m
Date: 2011-10-10 23:27:30 -0700 (Mon, 10 Oct 2011)
New Revision: 63981
Trac: http://trac.enlightenment.org/e/changeset/63981
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 06:27:20 UTC (rev 63980)
+++ trunk/elementary/src/lib/Elementary.h.in 2011-10-11 06:27:30 UTC (rev 63981)
@@ -19731,6 +19731,14 @@
*/
EAPI Evas_Object *elm_pager_content_top_get(const Evas_Object *obj)
EINA_ARG_NONNULL(1);
/**
+ * @brief Enable or disable pager animations
+ *
+ * @param obj The pager object
+ * @param disable True if the animation should be disabled
+ */
+ EAPI void elm_pager_animation_disabled_set(Evas_Object *obj, Eina_Bool
disable); EINA_ARG_NONNULL(1);
+
+ /**
* @}
*/
Modified: trunk/elementary/src/lib/elm_pager.c
===================================================================
--- trunk/elementary/src/lib/elm_pager.c 2011-10-11 06:27:20 UTC (rev 63980)
+++ trunk/elementary/src/lib/elm_pager.c 2011-10-11 06:27:30 UTC (rev 63981)
@@ -9,6 +9,7 @@
Eina_List *stack;
Item *top, *oldtop;
Evas_Object *rect, *clip;
+ Eina_Bool disable_animation: 1;
};
struct _Item
@@ -144,6 +145,7 @@
_eval_top(Evas_Object *obj)
{
Widget_Data *wd = elm_widget_data_get(obj);
+ Eina_Bool show_noanimate = EINA_TRUE;
Item *ittop;
if (!wd) return;
if (!wd->stack) return;
@@ -156,8 +158,14 @@
if (wd->top)
{
o = wd->top->base;
- if (wd->top->popme)
+ if(wd->disable_animation)
{
+ edje_object_signal_emit(o, "elm,action,hide,noanimate", "elm");
+ if (wd->top->popme)
+ wd->stack = eina_list_remove(wd->stack, wd->top);
+ }
+ else if (wd->top->popme)
+ {
edje_object_signal_emit(o, "elm,action,pop", "elm");
wd->stack = eina_list_remove(wd->stack, wd->top);
}
@@ -170,12 +178,20 @@
else if (!strcmp(onhide, "lower")) evas_object_lower(o);
}
}
+ else
+ {
+ show_noanimate = EINA_FALSE;
+ }
wd->oldtop = wd->top;
wd->top = ittop;
o = wd->top->base;
evas_object_show(o);
- if (wd->oldtop)
+ if ((!show_noanimate)||(wd->disable_animation))
{
+ edje_object_signal_emit(o, "elm,action,show,noanimate", "elm");
+ }
+ else if (wd->oldtop)
+ {
if (elm_object_focus_get(wd->oldtop->content))
elm_widget_focused_object_clear(wd->oldtop->content);
if (wd->oldtop->popme)
@@ -434,3 +450,18 @@
return wd->top->content;
}
+/**
+ * This disables content animation on push/pop.
+ *
+ * @param obj The pager object
+ * @param disable if EINA_TRUE animation is disabled.
+ *
+ * @ingroup Pager
+ */
+EAPI void
+elm_pager_animation_disabled_set(Evas_Object *obj, Eina_Bool disable)
+{
+ ELM_CHECK_WIDTYPE(obj, widtype);
+ Widget_Data *wd = elm_widget_data_get(obj);
+ wd->disable_animation = disable;
+}
------------------------------------------------------------------------------
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