efl/src
Bowon Ryu f4cf46e9b5 edje: markup flag should be TRUE in legacy edje_object_part_text_set
Summary:
Through some APIs (elm_entry_editable_set, elm_entry_single_line_set, etc.)
located after edje_object_part_text_set(legacy)

If efl_ui_widget_theme_apply is called,
In edje_object_part_text_raw_generic_set, the legacy flag becomes FALSE.
And in this case, the logic works in the unintended direction
because the set_markup flag is FALSE.

Test Plan:
/*
gcc -o entry_example entry.c `pkg-config --cflags --libs elementary`
 */
#include <Elementary.h>

EAPI_MAIN int
elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
{
   Evas_Object *win, *en;

   elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);

   win = elm_win_util_standard_add("entry-example", "test");
   elm_win_autodel_set(win, EINA_TRUE);
   en = elm_entry_add(win);
   evas_object_size_hint_weight_set(en, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
   elm_object_part_text_set(en, "elm.guide", "<font_size=32 color=#FFF>TEST</font_size>");
   elm_entry_editable_set(en, EINA_FALSE);

   evas_object_show(en);

   elm_object_content_set(win, en);
   evas_object_resize(win, 300, 200);
   evas_object_show(win);

   elm_run();

   return 0;
}
ELM_MAIN()

Reviewers: woohyun, ali.alzyod

Subscribers: zmike, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D11868
2020-06-05 14:26:22 +09:00
..
benchmarks benchmarks: use EFL_BUILD=1 in c_args 2020-05-26 10:15:17 +02:00
bin elm test - animated icon - big win to have a bg and not garbage 2020-06-04 12:09:06 +01:00
bindings bindings/lua: simplify some eolian binding code 2020-05-31 07:27:01 +02:00
edje_external Revert "Fix EAPI definition by defining EFL_BUILD for each built DLL" 2020-05-18 11:13:59 +01:00
examples evas examples - build box example again - missing header 2020-05-30 12:10:15 +01:00
generic remove vlc, gst-0.10, xine deps, modules as they are broken 2020-03-08 12:36:01 +00:00
lib edje: markup flag should be TRUE in legacy edje_object_part_text_set 2020-06-05 14:26:22 +09:00
modules evas - genetic update regions smart merge - merge v adjacent regions 2020-06-04 20:25:46 +01:00
scripts elua: fix object system on lua 5.2 onwards 2020-05-31 03:39:49 +02:00
static_libs canvas svg: fix missing break. 2020-06-02 13:18:17 +09:00
tests edje: markup flag should be TRUE in legacy edje_object_part_text_set 2020-06-05 14:26:22 +09:00
wayland_protocol refactor build 2020-05-27 11:06:46 +02:00