forked from enlightenment/efl
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
This commit is contained in:
parent
a1826580dc
commit
ea6a6afef5
|
@ -17001,7 +17001,7 @@ _efl_canvas_textblock_efl_text_style_text_gfx_filter_set(Eo *obj EINA_UNUSED, Ef
|
|||
static const char *
|
||||
_efl_canvas_textblock_efl_text_style_text_gfx_filter_get(const Eo *obj EINA_UNUSED, Efl_Canvas_Textblock_Data *o EINA_UNUSED)
|
||||
{
|
||||
return _FMT(gfx_filter)?_FMT(gfx_filter->name):NULL;
|
||||
return _FMT_INFO(gfx_filter_name)?_FMT_INFO(gfx_filter_name):NULL;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -5020,6 +5020,9 @@ EFL_START_TEST(efl_canvas_textblock_style)
|
|||
ck_assert(size1.w < size2.w);
|
||||
ck_assert(size1.h < size2.h);
|
||||
|
||||
efl_text_gfx_filter_set(txt, "code");
|
||||
ck_assert_str_eq(efl_text_gfx_filter_get(txt), "code");
|
||||
|
||||
END_EFL_CANVAS_TEXTBLOCK_TEST();
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
|
Loading…
Reference in New Issue