summaryrefslogtreecommitdiff
path: root/src/lib/eo/eo_base_class.c
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2018-12-12 14:07:52 -0800
committerCedric BAIL <cedric.bail@free.fr>2019-01-02 13:39:14 -0800
commitdfd09ec7e4b92a0b54ea306b1d5eab547bc1a893 (patch)
treed2949ab30dc46d21a87a507c8e5238fa213408cb /src/lib/eo/eo_base_class.c
parente9a434df9b2609f67546e0c99444d7ab17e715da (diff)
eo: enable priority with event forwarder.
Note: Their isn't any ability to do something like a static array of events at the moment. It might lead to large memory being used when it wouldn't be necessary. If that was the case, we could fix it, but it would require a lot of dynamic hash operation I think. Reviewed-by: Marcel Hollerbach <marcel-hollerbach@t-online.de> Differential Revision: https://phab.enlightenment.org/D7482
Diffstat (limited to 'src/lib/eo/eo_base_class.c')
-rw-r--r--src/lib/eo/eo_base_class.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/lib/eo/eo_base_class.c b/src/lib/eo/eo_base_class.c
index 7f57332..ef3a1ba 100644
--- a/src/lib/eo/eo_base_class.c
+++ b/src/lib/eo/eo_base_class.c
@@ -1806,25 +1806,25 @@ _efl_event_forwarder_callback(void *data, const Efl_Event *event)
1806 } 1806 }
1807} 1807}
1808 1808
1809/* FIXME: Change default priority? Maybe call later? */
1810EOLIAN static void 1809EOLIAN static void
1811_efl_object_event_callback_forwarder_add(Eo *obj, Efl_Object_Data *pd EINA_UNUSED, 1810_efl_object_event_callback_forwarder_priority_add(Eo *obj, Efl_Object_Data *pd EINA_UNUSED,
1812 const Efl_Event_Description *desc, 1811 const Efl_Event_Description *desc,
1813 Eo *new_obj) 1812 short priority,
1813 Eo *new_obj)
1814{ 1814{
1815 EO_OBJ_POINTER_RETURN(new_obj, new_data);
1816 EO_OBJ_DONE(new_obj);
1815 1817
1816 /* FIXME: Add it EO_MAGIC_RETURN(new_obj, EO_EINA_MAGIC); */ 1818 efl_event_callback_priority_add(obj, desc, priority, _efl_event_forwarder_callback, new_obj);
1817
1818 efl_event_callback_add(obj, desc, _efl_event_forwarder_callback, new_obj);
1819} 1819}
1820 1820
1821EOLIAN static void 1821EOLIAN static void
1822_efl_object_event_callback_forwarder_del(Eo *obj, Efl_Object_Data *pd EINA_UNUSED, 1822_efl_object_event_callback_forwarder_del(Eo *obj, Efl_Object_Data *pd EINA_UNUSED,
1823 const Efl_Event_Description *desc, 1823 const Efl_Event_Description *desc,
1824 Eo *new_obj) 1824 Eo *new_obj)
1825{ 1825{
1826 1826 EO_OBJ_POINTER_RETURN(new_obj, new_data);
1827 /* FIXME: Add it EO_MAGIC_RETURN(new_obj, EO_EINA_MAGIC); */ 1827 EO_OBJ_DONE(new_obj);
1828 1828
1829 efl_event_callback_del(obj, desc, _efl_event_forwarder_callback, new_obj); 1829 efl_event_callback_del(obj, desc, _efl_event_forwarder_callback, new_obj);
1830} 1830}