summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbdullehGhujeh <a.ghujeh@samsung.com>2020-07-28 13:38:33 +0000
committerStefan Schmidt <s.schmidt@samsung.com>2020-07-29 09:50:59 +0200
commitea6a6afef5dce0fdef366c4c34ae908d3c85632d (patch)
tree4ebeb5adb97ec3599c5bcbab569a2e3f6f772de0
parenta1826580dc4e2aa3496e960f6c286f14d8142bf7 (diff)
evas_textblock : return correct value for gfx_filter_get
return the same variable set with gfx_filter_set. added test for it. Reviewed-by: Ali Alzyod <ali198724@gmail.com> Reviewed-by: Stefan Schmidt <stefan@datenfreihafen.org> Differential Revision: https://phab.enlightenment.org/D12071
-rw-r--r--src/lib/evas/canvas/evas_object_textblock.c2
-rw-r--r--src/tests/evas/evas_test_textblock.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c
index ad325f8c77..b8541b3949 100644
--- a/src/lib/evas/canvas/evas_object_textblock.c
+++ b/src/lib/evas/canvas/evas_object_textblock.c
@@ -17001,7 +17001,7 @@ _efl_canvas_textblock_efl_text_style_text_gfx_filter_set(Eo *obj EINA_UNUSED, Ef
17001static const char * 17001static const char *
17002_efl_canvas_textblock_efl_text_style_text_gfx_filter_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Textblock_Data *o EINA_UNUSED) 17002_efl_canvas_textblock_efl_text_style_text_gfx_filter_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Textblock_Data *o EINA_UNUSED)
17003{ 17003{
17004 return _FMT(gfx_filter)?_FMT(gfx_filter->name):NULL; 17004 return _FMT_INFO(gfx_filter_name)?_FMT_INFO(gfx_filter_name):NULL;
17005} 17005}
17006 17006
17007static void 17007static void
diff --git a/src/tests/evas/evas_test_textblock.c b/src/tests/evas/evas_test_textblock.c
index 440d405105..707c72f22c 100644
--- a/src/tests/evas/evas_test_textblock.c
+++ b/src/tests/evas/evas_test_textblock.c
@@ -5020,6 +5020,9 @@ EFL_START_TEST(efl_canvas_textblock_style)
5020 ck_assert(size1.w < size2.w); 5020 ck_assert(size1.w < size2.w);
5021 ck_assert(size1.h < size2.h); 5021 ck_assert(size1.h < size2.h);
5022 5022
5023 efl_text_gfx_filter_set(txt, "code");
5024 ck_assert_str_eq(efl_text_gfx_filter_get(txt), "code");
5025
5023 END_EFL_CANVAS_TEXTBLOCK_TEST(); 5026 END_EFL_CANVAS_TEXTBLOCK_TEST();
5024} 5027}
5025EFL_END_TEST 5028EFL_END_TEST