spinner: apply UI Mirroring for Tizen 3.0 96/166696/2
authorJaeun Choi <jaeun12.choi@samsung.com>
Thu, 11 Jan 2018 11:49:05 +0000 (20:49 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 12 Jan 2018 04:06:46 +0000 (04:06 +0000)
spinner's look and behavior are not affected by UI mirroring,
so buttons inside a spinner should not be mirrored either.
this patch makes the buttons not to be affected by elm_config_mirrored_set
and sets the mirror mode manually as EINA_FALSE.

@tizen_only

Change-Id: I8f8dcd90babdc1ff52a45ac70a9c7c13a4351c41

src/lib/elementary/elm_spinner.c

index beb67a5..21df52f 100644 (file)
@@ -1221,6 +1221,13 @@ _elm_spinner_efl_canvas_group_group_add(Eo *obj, Elm_Spinner_Data *priv)
    if (sd->button_layout)
      {
         priv->inc_button = elm_button_add(obj);
+
+        /* TIZEN_ONLY(20161115): apply UI Mirroring for Tizen 3.0 UX.
+           buttons inside a spinner are not mirrored */
+        elm_object_mirrored_automatic_set(priv->inc_button, EINA_FALSE);
+        elm_object_mirrored_set(priv->inc_button, EINA_FALSE);
+        /* END */
+
         elm_object_style_set(priv->inc_button, "spinner/increase/default");
 
         efl_event_callback_array_add(priv->inc_button, _inc_dec_button_cb(), obj);
@@ -1229,6 +1236,13 @@ _elm_spinner_efl_canvas_group_group_add(Eo *obj, Elm_Spinner_Data *priv)
         elm_widget_sub_object_add(obj, priv->inc_button);
 
         priv->text_button = elm_button_add(obj);
+
+        /* TIZEN_ONLY(20161115): apply UI Mirroring for Tizen 3.0 UX.
+           buttons inside a spinner are not mirrored */
+        elm_object_mirrored_automatic_set(priv->text_button, EINA_FALSE);
+        elm_object_mirrored_set(priv->text_button, EINA_FALSE);
+        /* END */
+
         elm_object_style_set(priv->text_button, "spinner/default");
 
         efl_event_callback_add
@@ -1241,6 +1255,13 @@ _elm_spinner_efl_canvas_group_group_add(Eo *obj, Elm_Spinner_Data *priv)
         elm_widget_sub_object_add(obj, priv->text_button);
 
         priv->dec_button = elm_button_add(obj);
+
+        /* TIZEN_ONLY(20161115): apply UI Mirroring for Tizen 3.0 UX.
+           buttons inside a spinner are not mirrored */
+        elm_object_mirrored_automatic_set(priv->dec_button, EINA_FALSE);
+        elm_object_mirrored_set(priv->dec_button, EINA_FALSE);
+        /* END */
+
         elm_object_style_set(priv->dec_button, "spinner/decrease/default");
 
         efl_event_callback_array_add(priv->dec_button, _inc_dec_button_cb(), obj);