atspi: remove EAPI from elm_atspi_text_text_attribute_free
authorLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 8 Aug 2014 09:05:18 +0000 (11:05 +0200)
committerLukasz Stanislawski <l.stanislaws@samsung.com>
Fri, 8 Aug 2014 09:17:00 +0000 (11:17 +0200)
Issue reported by Stefan Schmidt. Above atspi function had EAPI attribute
defined in implementation file, however this symbol should not be public in
elementary 1.11.

src/lib/elm_interface_atspi_text.c
src/tests/elm_test_entry.c

index afab4d5..39e0e77 100644 (file)
@@ -11,7 +11,7 @@
 #include "elm_interface_atspi_text.h"
 #include "elm_interface_atspi_text.eo.h"
 
-EAPI void
+void
 elm_atspi_text_text_attribute_free(Elm_Atspi_Text_Attribute *attr)
 {
    if (!attr) return;
index 8c70c58..87e17e6 100644 (file)
@@ -335,36 +335,6 @@ START_TEST (elm_entry_atspi_text_selections)
 }
 END_TEST
 
-START_TEST (elm_entry_atspi_text_attributes)
-{
-   Evas_Object *win, *entry;
-   Eina_List *formats;
-   const char txt[] = "<font_weight=Bold>Lorem ipśum<br></>  dolor sit\n amęt";
-   int start = 0, end = sizeof(txt);
-   Elm_Atspi_Text_Attribute *attr;
-
-   elm_init(1, NULL);
-   win = elm_win_add(NULL, "entry", ELM_WIN_BASIC);
-
-   entry = elm_entry_add(win);
-   elm_object_text_set(entry, txt);
-
-   eo_do(entry, formats = elm_interface_atspi_text_attributes_get(&start, &end));
-   EINA_LIST_FREE(formats, attr)
-     {
-        elm_atspi_text_text_attribute_free(attr);
-     }
-
-   eo_do(entry, formats = elm_interface_atspi_text_default_attributes_get());
-   EINA_LIST_FREE(formats, attr)
-     {
-        elm_atspi_text_text_attribute_free(attr);
-     }
-
-   elm_shutdown();
-}
-END_TEST
-
 START_TEST (elm_atspi_role_get)
 {
    Evas_Object *win, *entry;
@@ -393,6 +363,5 @@ void elm_test_entry(TCase *tc)
    tcase_add_test(tc, elm_entry_atspi_text_string_get_line);
    tcase_add_test(tc, elm_entry_atspi_text_text_get);
    tcase_add_test(tc, elm_entry_atspi_text_selections);
-   tcase_add_test(tc, elm_entry_atspi_text_attributes);
    tcase_add_test(tc, elm_atspi_role_get);
 }