edje_codegen: Making the example uses the new object get
authorbarbieri <barbieri>
Fri, 7 Sep 2012 15:41:22 +0000 (15:41 +0000)
committerbarbieri <barbieri@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 7 Sep 2012 15:41:22 +0000 (15:41 +0000)
 function

Patch by: Flavio Ceolin <flavio.ceolin@profusion.mobi>

git-svn-id: http://svn.enlightenment.org/svn/e/trunk/edje@76315 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/examples/edje-codegen-example.c

index 8ce06e6..535f9f0 100644 (file)
@@ -108,8 +108,7 @@ main(int argc, char *argv[])
    evas_object_show(bg);
    ecore_evas_object_associate(ee, bg, ECORE_EVAS_OBJECT_ASSOCIATE_BASE);
 
-   edje_obj = edje_object_add(evas);
-   edje_object_file_set(edje_obj, edje_file, "example_group");
+   edje_obj = codegen_example_object_add(evas, NULL);
    evas_object_move(edje_obj, 20, 20);
    evas_object_resize(edje_obj, WIDTH - 40, HEIGHT - 40);
    evas_object_show(edje_obj);