From faf6e7768620044c76f56b9ab7dd312e4e919d62 Mon Sep 17 00:00:00 2001 From: Gustavo Lima Chaves Date: Tue, 17 Jul 2012 18:44:16 +0000 Subject: [PATCH] [elm] Init code fix -- calendar. SVN revision: 74007 --- src/lib/elm_calendar.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/elm_calendar.c b/src/lib/elm_calendar.c index 7bcf1c0..de957d3 100644 --- a/src/lib/elm_calendar.c +++ b/src/lib/elm_calendar.c @@ -802,6 +802,13 @@ _elm_calendar_smart_add(Evas_Object *obj) priv->update_timer = ecore_timer_add(t, _update_cur_date, obj); elm_widget_can_focus_set(obj, EINA_TRUE); + + elm_layout_theme_set(obj, "calendar", "base", elm_object_style_get(obj)); + + _set_headers(obj); + _populate(obj); + + elm_layout_sizing_eval(obj); } static void @@ -860,13 +867,6 @@ elm_calendar_add(Evas_Object *parent) if (!elm_widget_sub_object_add(parent, obj)) ERR("could not add %p as sub object of %p", obj, parent); - elm_layout_theme_set(obj, "calendar", "base", elm_object_style_get(obj)); - - _set_headers(obj); - _populate(obj); - - elm_layout_sizing_eval(obj); - return obj; } -- 2.7.4