summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukasz Stanislawski <l.stanislaws@samsung.com>2014-08-08 11:05:18 +0200
committerLukasz Stanislawski <l.stanislaws@samsung.com>2014-08-08 11:17:00 +0200
commit8be5e9bba1a6f901b34e3a30c2e7caddaea7301f (patch)
treeb7b1cfa973b8dd78d076f923e7ecb8289b358bfa
parent7f42cab29c00272e1157f6bcf804430d11ec5d2f (diff)
atspi: remove EAPI from elm_atspi_text_text_attribute_free
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.
-rw-r--r--src/lib/elm_interface_atspi_text.c2
-rw-r--r--src/tests/elm_test_entry.c31
2 files changed, 1 insertions, 32 deletions
diff --git a/src/lib/elm_interface_atspi_text.c b/src/lib/elm_interface_atspi_text.c
index afab4d591..39e0e771a 100644
--- a/src/lib/elm_interface_atspi_text.c
+++ b/src/lib/elm_interface_atspi_text.c
@@ -11,7 +11,7 @@
11#include "elm_interface_atspi_text.h" 11#include "elm_interface_atspi_text.h"
12#include "elm_interface_atspi_text.eo.h" 12#include "elm_interface_atspi_text.eo.h"
13 13
14EAPI void 14void
15elm_atspi_text_text_attribute_free(Elm_Atspi_Text_Attribute *attr) 15elm_atspi_text_text_attribute_free(Elm_Atspi_Text_Attribute *attr)
16{ 16{
17 if (!attr) return; 17 if (!attr) return;
diff --git a/src/tests/elm_test_entry.c b/src/tests/elm_test_entry.c
index 8c70c5872..87e17e6f9 100644
--- a/src/tests/elm_test_entry.c
+++ b/src/tests/elm_test_entry.c
@@ -335,36 +335,6 @@ START_TEST (elm_entry_atspi_text_selections)
335} 335}
336END_TEST 336END_TEST
337 337
338START_TEST (elm_entry_atspi_text_attributes)
339{
340 Evas_Object *win, *entry;
341 Eina_List *formats;
342 const char txt[] = "<font_weight=Bold>Lorem ipśum<br></> dolor sit\n amęt";
343 int start = 0, end = sizeof(txt);
344 Elm_Atspi_Text_Attribute *attr;
345
346 elm_init(1, NULL);
347 win = elm_win_add(NULL, "entry", ELM_WIN_BASIC);
348
349 entry = elm_entry_add(win);
350 elm_object_text_set(entry, txt);
351
352 eo_do(entry, formats = elm_interface_atspi_text_attributes_get(&start, &end));
353 EINA_LIST_FREE(formats, attr)
354 {
355 elm_atspi_text_text_attribute_free(attr);
356 }
357
358 eo_do(entry, formats = elm_interface_atspi_text_default_attributes_get());
359 EINA_LIST_FREE(formats, attr)
360 {
361 elm_atspi_text_text_attribute_free(attr);
362 }
363
364 elm_shutdown();
365}
366END_TEST
367
368START_TEST (elm_atspi_role_get) 338START_TEST (elm_atspi_role_get)
369{ 339{
370 Evas_Object *win, *entry; 340 Evas_Object *win, *entry;
@@ -393,6 +363,5 @@ void elm_test_entry(TCase *tc)
393 tcase_add_test(tc, elm_entry_atspi_text_string_get_line); 363 tcase_add_test(tc, elm_entry_atspi_text_string_get_line);
394 tcase_add_test(tc, elm_entry_atspi_text_text_get); 364 tcase_add_test(tc, elm_entry_atspi_text_text_get);
395 tcase_add_test(tc, elm_entry_atspi_text_selections); 365 tcase_add_test(tc, elm_entry_atspi_text_selections);
396 tcase_add_test(tc, elm_entry_atspi_text_attributes);
397 tcase_add_test(tc, elm_atspi_role_get); 366 tcase_add_test(tc, elm_atspi_role_get);
398} 367}