• Stefan Schmidt's avatar
    Revert "access: add API to get access object of given part" · a17d59c7
    Stefan Schmidt authored
    This reverts commit 57d77c90.
    
    We are in freeze right now and this is a new feature. Considering the access
    API is still in beta I might have let this slip by but its does not even build
    
    ../../../src/tests/elementary/elm_test_popup.c:27:1: error: conflicting types for ‘elm_object_part_access_object_get’
     START_TEST (elm_object_part_access_object_get)
     ^
    In file included from ../../../src/lib/elementary/Elementary.h:240:0,
                     from ../../../src/tests/elementary/elm_test_popup.c:6:
    ../../../src/lib/elementary/elm_object.h:521:54: note: previous declaration of ‘elm_object_part_access_object_get’ was here
     EAPI Evas_Object *elm_object_part_access_object_get(const Evas_Object *obj, const char *part);
                                                          ^
    ../../../src/tests/elementary/elm_test_popup.c: In function ‘elm_object_part_access_object_get’:
    ../../../src/tests/elementary/elm_test_popup.c:39:47: warning: passing argument 1 of ‘elm_object_part_access_object_get’ makes integer from pointer without a cast [-Wint-conversion]
        access = elm_object_part_access_object_get(popup, "access.title");
                                                   ^
    ../../../src/tests/elementary/elm_test_popup.c:27:1: note: expected ‘int’ but argument is of type ‘Evas_Object * {aka struct _Eo_Opaque *}’
     START_TEST (elm_object_part_access_object_get)
     ^
    ../../../src/tests/elementary/elm_test_popup.c:39:13: error: too many arguments to function ‘elm_object_part_access_object_get’
        access = elm_object_part_access_object_get(popup, "access.title");
                 ^
    ../../../src/tests/elementary/elm_test_popup.c:27:1: note: declared here
     START_TEST (elm_object_part_access_object_get)
     ^
    ../../../src/tests/elementary/elm_test_popup.c:39:11: error: void value not ignored as it ought to be
        access = elm_object_part_access_object_get(popup, "access.title");
               ^
    Makefile:43996: recipe for target 'tests/elementary/tests_elementary_elm_suite-elm_test_popup.o' failed
    make[5]: *** [tests/elementary/tests_elementary_elm_suite-elm_test_popup.o] Error 1
    
    If you still want this in make sure it actually can compile the tests you added.
    a17d59c7
elc_popup.c 52.7 KB