[elm] Init code fix -- check.
authorGustavo Lima Chaves <glima@profusion.mobi>
Tue, 17 Jul 2012 18:44:36 +0000 (18:44 +0000)
committerGustavo Lima Chaves <glima@profusion.mobi>
Tue, 17 Jul 2012 18:44:36 +0000 (18:44 +0000)
SVN revision: 74010

src/lib/elm_check.c

index a2b4ebc..e85da28 100644 (file)
@@ -334,6 +334,9 @@ _elm_check_smart_add(Evas_Object *obj)
      (_elm_access_object_get(obj), ELM_ACCESS_STATE, _access_state_cb, priv);
 
    elm_widget_can_focus_set(obj, EINA_TRUE);
+
+   elm_layout_theme_set(obj, "check", "base", elm_widget_style_get(obj));
+   elm_layout_sizing_eval(obj);
 }
 
 static void
@@ -373,9 +376,6 @@ elm_check_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, "check", "base", elm_widget_style_get(obj));
-   elm_layout_sizing_eval(obj);
-
    return obj;
 }