win: apply EVAS_BIDI_DIRECTION_ANY_RTL as default for RTL locale 33/115233/1
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 16 Feb 2017 05:35:22 +0000 (14:35 +0900)
committerYoungbok Shin <youngb.shin@samsung.com>
Fri, 17 Feb 2017 04:19:09 +0000 (20:19 -0800)
* dependency warning
  - efl
  "evas: add EVAS_BIDI_DIRECTION_ANY_RTL for evas_object_paragraph_direction_set API"
  https://review.tizen.org/gerrit/#/c/114989/

@tizen_feature

Change-Id: Id72455ef011b602f0bf6876b3be3f8558ad0211f
(cherry picked from commit bf47379bfbbe0273142710bcf845454de2604200)

src/lib/elm_widget.h
src/lib/elm_win.c

index cf0a32c9d8ef3abc82bf071054912439c6ef9519..f6e3320cd53c0620f64e1343e6654010b2d14200 100644 (file)
@@ -441,7 +441,7 @@ typedef struct _Elm_Widget_Smart_Data
    Elm_Focus_Move_Policy         focus_move_policy;
    Elm_Focus_Region_Show_Mode    focus_region_show_mode;
    /* TIZEN_ONLY(20160622): Override Paragraph Direction APIs */
-   Evas_BiDi_Direction           paragraph_direction : 2;
+   Evas_BiDi_Direction           paragraph_direction : 3;
    Eina_Bool                     inherit_paragraph_direction : 1;
    /* END */
 
index f9569e44f4c127d55b7732ed8a8d152faa4debeb..18f2ecf62c0c5b03371562180aadacada81e7366 100644 (file)
@@ -3024,7 +3024,7 @@ _elm_win_translate(void)
    EINA_LIST_FOREACH(_elm_win_list, l, obj)
      {
         if (!strcmp(E_("default:LTR"), "default:RTL"))
-          evas_object_paragraph_direction_set(obj, EVAS_BIDI_DIRECTION_RTL);
+          evas_object_paragraph_direction_set(obj, EVAS_BIDI_DIRECTION_ANY_RTL);
         else
           evas_object_paragraph_direction_set(obj, EVAS_BIDI_DIRECTION_LTR);
 
@@ -3874,7 +3874,7 @@ elm_win_add(Evas_Object *parent,
 
                        // TIZEN_ONLY(20161202): Apply paragraph direction
                        if (!strcmp(E_("default:LTR"), "default:RTL"))
-                         evas_object_paragraph_direction_set(tmp, EVAS_BIDI_DIRECTION_RTL);
+                         evas_object_paragraph_direction_set(tmp, EVAS_BIDI_DIRECTION_ANY_RTL);
                        else
                          evas_object_paragraph_direction_set(tmp, EVAS_BIDI_DIRECTION_LTR);
                        //
@@ -4751,7 +4751,7 @@ _elm_win_finalize_internal(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_
 
    /* TIZEN_ONLY(20160622): Apply paragraph direction when language is changed */
    if (!strcmp(E_("default:LTR"), "default:RTL"))
-     evas_object_paragraph_direction_set(obj, EVAS_BIDI_DIRECTION_RTL);
+     evas_object_paragraph_direction_set(obj, EVAS_BIDI_DIRECTION_ANY_RTL);
    else
      evas_object_paragraph_direction_set(obj, EVAS_BIDI_DIRECTION_LTR);
    /* END */