spinner: apply UI Mirroring for Tizen 3.0
authorJaeun Choi <jaeun12.choi@samsung.com>
Tue, 15 Nov 2016 02:31:49 +0000 (11:31 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 17 Nov 2016 08:07:49 +0000 (17:07 +0900)
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.

Change-Id: I7228e07e5d4751799bfa7c10d8c88012a7c757f9

src/lib/elm_spinner.c

index fbf647f97a94cc6527bb7183c7ec659c34f54f0a..27c183b36ee8174f0fb1d9adff96da09500f88ab 100644 (file)
@@ -1305,6 +1305,13 @@ _elm_spinner_evas_object_smart_add(Eo *obj, Elm_Spinner_Data *priv)
         /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
         _elm_widget_color_class_parent_set(priv->inc_button, obj);
         /* END */
+
+        /* 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");
 
         eo_do(priv->inc_button,
@@ -1317,6 +1324,13 @@ _elm_spinner_evas_object_smart_add(Eo *obj, Elm_Spinner_Data *priv)
         /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
         _elm_widget_color_class_parent_set(priv->text_button, obj);
         /* END */
+
+        /* 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");
 
         eo_do(priv->text_button, eo_event_callback_add
@@ -1331,6 +1345,13 @@ _elm_spinner_evas_object_smart_add(Eo *obj, Elm_Spinner_Data *priv)
         /* TIZEN_ONLY(20161031): apply color_class parent-child relationship to all widgets */
         _elm_widget_color_class_parent_set(priv->dec_button, obj);
         /* END */
+
+        /* 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");
 
         eo_do(priv->dec_button,