datetime: Delay elm_layout_theme_set until memebers are initialized in _smart_add
authorRyuan Choi <ryuan.choi@gmail.com>
Thu, 16 Jan 2014 13:44:07 +0000 (22:44 +0900)
committerRyuan Choi <ryuan.choi@gmail.com>
Thu, 16 Jan 2014 13:50:40 +0000 (22:50 +0900)
commit28609ee56e8b2d1a8a693bac1f512ea805a146b9
tree4ff1da915db4660993cbf0e149f923f3498ae01c
parent295898ff86c9add475771c68dbf1451864c48384
datetime: Delay elm_layout_theme_set until memebers are initialized in _smart_add

There are some warnings in elm_object_disabled_set() because elm_layout_theme_set()
calls _elm_datetime_smart_disable() before creating file->item_obj.
This patch refactors _smart_add to initialize file->item_obj before calling
elm_layout_theme_set().
src/lib/elm_datetime.c