win: apply EVAS_BIDI_DIRECTION_ANY_RTL as default for RTL locale 13/115013/5
authorYoungbok Shin <youngb.shin@samsung.com>
Thu, 16 Feb 2017 05:35:22 +0000 (14:35 +0900)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Fri, 17 Feb 2017 02:12:08 +0000 (18:12 -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

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

index 9547052951014125730338c57e9f15979ca3aa6d..13dc5ec6f96e8755c97c72980cc7d7640c17b017 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 bd1cca1a3da4def0fb433cfab52c5feb59880ae4..6155ebe26e5b029a491bdba177c93e05c70372ee 100644 (file)
@@ -3033,7 +3033,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);
 
@@ -3883,7 +3883,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);
                        //
@@ -4760,7 +4760,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 */