config: add missing "TIZEN_ONLY" comments for "language_auto_mirrored"
authorJaeun Choi <jaeun12.choi@samsung.com>
Tue, 20 Dec 2016 05:51:28 +0000 (14:51 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 05:37:10 +0000 (14:37 +0900)
Change-Id: I68fae4b2902eb2eade9a3ab15bb24d51a6acfe82

src/lib/elm_config.c
src/lib/elm_config.h
src/lib/elm_priv.h
src/lib/elm_win.c

index fa87c0a3b100900dce1d084d54cc23c819810df2..fc470e7c9ff92d63b73865ebba345a74e020c977 100644 (file)
@@ -468,7 +468,10 @@ _desc_init(void)
    ELM_CONFIG_VAL(D, T, scroll_item_align_enable, T_UCHAR);
    ELM_CONFIG_VAL(D, T, scroll_item_valign, T_STRING);
    //
+   // TIZEN_ONLY(20161202): This config is for applying UI mirroring
+   //                       automatically according to language setting
    ELM_CONFIG_VAL(D, T, language_auto_mirrored, T_UCHAR);
+   //
 #undef T
 #undef D
 #undef T_INT
@@ -1850,7 +1853,9 @@ _config_load(void)
    _elm_config->scroll_item_align_enable = EINA_FALSE;
    _elm_config->scroll_item_valign = eina_stringshare_add("center");
    //
+   // TIZEN_ONLY(20161202): Enable auto mirroring by default
    _elm_config->language_auto_mirrored = EINA_TRUE;
+   //
 }
 
 static void
@@ -2648,6 +2653,7 @@ elm_config_mirrored_set(Eina_Bool mirrored)
    _elm_rescale();
 }
 
+// TIZEN_ONLY(20161202): Getter and setter of auto mirroring config
 EAPI Eina_Bool
 elm_config_language_auto_mirrored_get(void)
 {
@@ -2662,6 +2668,7 @@ elm_config_language_auto_mirrored_set(Eina_Bool automatic)
    _elm_config->language_auto_mirrored = automatic;
    _elm_rescale();
 }
+//
 
 EAPI Eina_Bool
 elm_config_cursor_engine_only_get(void)
index 7e48447cda030247b3c3df2bf737cf3fbc143aad..d17e3523598343dd54d31e09edeb5fc5ca3adafc 100644 (file)
@@ -2226,6 +2226,7 @@ EAPI Eina_Bool elm_config_mirrored_get(void);
  */
 EAPI void      elm_config_mirrored_set(Eina_Bool mirrored);
 
+// TIZEN_ONLY(20161202): Getter and setter of auto mirroring config
 /**
  * Get the system auto mirrored mode.
  * This determines whether the mirrored mode is determined automatically by the locale or not.
@@ -2241,6 +2242,7 @@ EAPI Eina_Bool elm_config_language_auto_mirrored_get(void);
  * @param mirrored @c EINA_TRUE to set auto mirrored mode, @c EINA_FALSE to unset it.
  */
 EAPI void      elm_config_language_auto_mirrored_set(Eina_Bool auto_mirrored);
+//
 
 /**
  * @internal
index 86fdf0b691a2d46e45a996ce338c9faa94773c39..eae5ffa17162e55c0dbadfb746fbe8fad9f50f20 100644 (file)
@@ -320,7 +320,10 @@ struct _Elm_Config
    Eina_Bool     scroll_item_align_enable;
    const char   *scroll_item_valign;
 //
+// TIZEN_ONLY(20161202): This config is for applying UI mirroring
+//                       automatically according to language setting
    Eina_Bool     language_auto_mirrored;
+//
 
    /* Not part of the EET file */
    Eina_Bool     is_mirrored : 1;
index e053ff96874d9855db457ae8791cc0daa6c43d8a..1b23270e5787c130584e7b306256474f82c4e1b2 100644 (file)
@@ -3031,6 +3031,7 @@ _elm_win_translate(void)
      }
    /* END */
 
+   //TIZEN_ONLY(20161202): Temporary code - Apply mirroring in _elm_win_translate()
    if (_elm_config->language_auto_mirrored)
      {
         if (!strcmp(E_("default:LTR"), "default:RTL"))
@@ -3038,6 +3039,7 @@ _elm_win_translate(void)
         else
           elm_config_mirrored_set(EINA_FALSE);
      }
+   //
 }
 
 void