summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2013-12-31 20:33:51 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-31 20:33:51 +0900
commitde2fa4e898ef69b1a6fa70d41e595f635225a5f5 (patch)
tree6867b780c087d8b00ac5a05573481f5cac00567f
parentd585e41a818562ce37def341869889c81f10abd7 (diff)
[elm_widget] Fix not to load theme for mirroring if smart data is not set
Summary: Do not load widget theme for mirroring if smart data creation is not finished. Reviewers: Hermet, raster Reviewed By: raster CC: seoz Differential Revision: https://phab.enlightenment.org/D428
-rw-r--r--src/lib/elm_widget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elm_widget.c b/src/lib/elm_widget.c
index eb62a9366..14f40919a 100644
--- a/src/lib/elm_widget.c
+++ b/src/lib/elm_widget.c
@@ -238,7 +238,7 @@ _elm_widget_smart_add(Eo *obj, void *_pd, va_list *list EINA_UNUSED)
238 priv->mirrored_auto_mode = EINA_TRUE; /* will follow system locale 238 priv->mirrored_auto_mode = EINA_TRUE; /* will follow system locale
239 * settings */ 239 * settings */
240 elm_widget_can_focus_set(obj, EINA_TRUE); 240 elm_widget_can_focus_set(obj, EINA_TRUE);
241 elm_widget_mirrored_set(obj, elm_config_mirrored_get()); 241 priv->is_mirrored = elm_config_mirrored_get();
242 242
243 evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_DOWN, 243 evas_object_event_callback_add(obj, EVAS_CALLBACK_MOUSE_DOWN,
244 _obj_mouse_down, obj); 244 _obj_mouse_down, obj);
@@ -1095,7 +1095,7 @@ _elm_widget_sub_object_add(Eo *obj, void *_pd, va_list *list)
1095 mirrored = elm_widget_mirrored_get(sobj); 1095 mirrored = elm_widget_mirrored_get(sobj);
1096 1096
1097 if ((scale != pscale) || (!sdc->on_create && th != pth) || 1097 if ((scale != pscale) || (!sdc->on_create && th != pth) ||
1098 (pmirrored != mirrored)) 1098 (!sdc->on_create && (pmirrored != mirrored)))
1099 elm_widget_theme(sobj); 1099 elm_widget_theme(sobj);
1100 1100
1101 if (elm_widget_focus_get(sobj)) _parents_focus(obj); 1101 if (elm_widget_focus_get(sobj)) _parents_focus(obj);