From 603239627c12d8f855bc3da610cf6cae1c48749d Mon Sep 17 00:00:00 2001 From: Flavio Vinicius Alvares Ceolin Date: Thu, 29 Nov 2012 15:52:50 +0000 Subject: [PATCH] examples:codegen: Removing the usage of externals Avoiding a circular dependency edje -> elementary -> edje. It was breaking the build system when option --enable-build-examples was given. SVN revision: 79839 --- legacy/edje/src/examples/codegen.edc | 15 ----------- .../edje/src/examples/edje-codegen-example.c | 25 ------------------- 2 files changed, 40 deletions(-) diff --git a/legacy/edje/src/examples/codegen.edc b/legacy/edje/src/examples/codegen.edc index 8b11cba45f..5560581baf 100644 --- a/legacy/edje/src/examples/codegen.edc +++ b/legacy/edje/src/examples/codegen.edc @@ -1,9 +1,6 @@ collections { group { - externals { /* declare the modules you want to load */ - external: "elm"; /* toolkit/widgets */ - } name: "example_group"; min: 50 50; @@ -72,18 +69,6 @@ collections { } } - part { - name: "part_five"; - type: EXTERNAL; - source: "elm/button"; - api: "part_five" "An elm button using externals"; - description { - state: "default" 0.0; - rel1.relative: 0.9 0.5; - rel2.relative: 1.0 0.6; - params.string: "icon" "apps"; - } - } } programs { diff --git a/legacy/edje/src/examples/edje-codegen-example.c b/legacy/edje/src/examples/edje-codegen-example.c index 90d33a59a9..23a7226a27 100644 --- a/legacy/edje/src/examples/edje-codegen-example.c +++ b/legacy/edje/src/examples/edje-codegen-example.c @@ -79,15 +79,6 @@ _on_mouse_over(void *data, Evas_Object *obj, const char *emission, codegen_example_part_four_clear(obj, EINA_TRUE); _columns_rows_print(obj); codegen_example_part_three_remove_all(obj, EINA_TRUE); - part_five_part_five_disabled_set(obj, EINA_TRUE); - - if (part_five_part_five_disabled_get(obj, &disabled)) - if (disabled) - fprintf(stdout, "Button is disabled\n"); - else - fprintf(stdout, "Button is enabled\n"); - else - fprintf(stderr, "Couldn't check if the button is disabled\n"); } } @@ -188,22 +179,6 @@ main(int argc, char *argv[]) if (!codegen_example_part_four_pack(edje_obj, rects[3], 1, 1, 1, 1)) fprintf(stderr, "Cannot add the rectangle 4 to table\n"); - if (!part_five_part_five_label_set(edje_obj, "new label")) - fprintf(stderr, "Cannot set the label of the button\n"); - - if (part_five_part_five_label_get(edje_obj, &aux)) - fprintf(stdout, "Label contents: %s\n", aux); - else - fprintf(stderr, "Couldn't get the label contents\n"); - - if (part_five_part_five_disabled_get(edje_obj, &disabled)) - if (disabled) - fprintf(stdout, "Button is disabled\n"); - else - fprintf(stdout, "Button is enabled\n"); - else - fprintf(stderr, "Couldn't check if the button is disabled\n"); - _columns_rows_print(edje_obj); ecore_evas_show(ee);