summaryrefslogtreecommitdiff
path: root/legacy/elementary/src/lib/elm_access.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2013-01-10 21:11:34 +0000
committerDaniel Juyung Seo <seojuyung2@gmail.com>2013-01-10 21:11:34 +0000
commit26eccbef548778a74e76198b9bd5ed63136831d3 (patch)
treeb8c5bd321d5afcb24276043949c229d4aba6967b /legacy/elementary/src/lib/elm_access.c
parent5bb50d9645c29b28c21616d1f138fa65a389f82f (diff)
elm access: Code restructuring like other codes.
SVN revision: 82586
Diffstat (limited to 'legacy/elementary/src/lib/elm_access.c')
-rw-r--r--legacy/elementary/src/lib/elm_access.c57
1 files changed, 28 insertions, 29 deletions
diff --git a/legacy/elementary/src/lib/elm_access.c b/legacy/elementary/src/lib/elm_access.c
index d4d52ef..dd31172 100644
--- a/legacy/elementary/src/lib/elm_access.c
+++ b/legacy/elementary/src/lib/elm_access.c
@@ -767,33 +767,6 @@ _constructor(Eo *obj, void *_pd EINA_UNUSED, va_list *list EINA_UNUSED)
767 ERR("could not add %p as sub object of %p", obj, parent); 767 ERR("could not add %p as sub object of %p", obj, parent);
768} 768}
769 769
770static void
771_class_constructor(Eo_Class *klass)
772{
773 const Eo_Op_Func_Description func_desc[] = {
774 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _constructor),
775
776 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_ADD), _elm_access_smart_add),
777
778 EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_FOCUS), _elm_access_smart_on_focus),
779 EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACTIVATE), _elm_access_smart_activate),
780
781 EO_OP_FUNC_SENTINEL
782 };
783 eo_class_funcs_set(klass, func_desc);
784}
785
786static const Eo_Class_Description class_desc = {
787 EO_VERSION,
788 MY_CLASS_NAME,
789 EO_CLASS_TYPE_REGULAR,
790 EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
791 NULL,
792 0,
793 _class_constructor,
794 NULL
795};
796
797EAPI Evas_Object * 770EAPI Evas_Object *
798elm_access_object_item_register(Elm_Object_Item *item) 771elm_access_object_item_register(Elm_Object_Item *item)
799{ 772{
@@ -860,7 +833,7 @@ elm_access_content_cb_set(Evas_Object *obj, int type,
860 833
861EAPI void 834EAPI void
862elm_access_activate_cb_set(Evas_Object *obj, 835elm_access_activate_cb_set(Evas_Object *obj,
863 Elm_Access_Activate_Cb func, void *data) 836 Elm_Access_Activate_Cb func, void *data)
864{ 837{
865 Elm_Access_Info *ac; 838 Elm_Access_Info *ac;
866 839
@@ -887,5 +860,31 @@ elm_access_external_info_get(const Evas_Object *obj)
887 return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, (Evas_Object *)obj); 860 return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, (Evas_Object *)obj);
888} 861}
889 862
890EO_DEFINE_CLASS(elm_obj_access_class_get, &class_desc, ELM_OBJ_WIDGET_CLASS, NULL); 863static void
864_class_constructor(Eo_Class *klass)
865{
866 const Eo_Op_Func_Description func_desc[] = {
867 EO_OP_FUNC(EO_BASE_ID(EO_BASE_SUB_ID_CONSTRUCTOR), _constructor),
868
869 EO_OP_FUNC(EVAS_OBJ_SMART_ID(EVAS_OBJ_SMART_SUB_ID_ADD), _elm_access_smart_add),
891 870
871 EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ON_FOCUS), _elm_access_smart_on_focus),
872 EO_OP_FUNC(ELM_WIDGET_ID(ELM_WIDGET_SUB_ID_ACTIVATE), _elm_access_smart_activate),
873
874 EO_OP_FUNC_SENTINEL
875 };
876 eo_class_funcs_set(klass, func_desc);
877}
878
879static const Eo_Class_Description class_desc = {
880 EO_VERSION,
881 MY_CLASS_NAME,
882 EO_CLASS_TYPE_REGULAR,
883 EO_CLASS_DESCRIPTION_OPS(NULL, NULL, 0),
884 NULL,
885 0,
886 _class_constructor,
887 NULL
888};
889
890EO_DEFINE_CLASS(elm_obj_access_class_get, &class_desc, ELM_OBJ_WIDGET_CLASS, NULL);