summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorFlavio Vinicius Alvares Ceolin <flavio.ceolin@profusion.mobi>2012-11-29 15:52:50 +0000
committerFlavio Vinicius Alvares Ceolin <flavio.ceolin@profusion.mobi>2012-11-29 15:52:50 +0000
commit603239627c12d8f855bc3da610cf6cae1c48749d (patch)
tree247932f04a2e9a2e4b7ca15c9227dac4a4cba86c /legacy
parent5a12e6114bbe1957661be0c3c47197bf95b7b63e (diff)
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
Diffstat (limited to 'legacy')
-rw-r--r--legacy/edje/src/examples/codegen.edc15
-rw-r--r--legacy/edje/src/examples/edje-codegen-example.c25
2 files changed, 0 insertions, 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 @@
1collections { 1collections {
2 2
3 group { 3 group {
4 externals { /* declare the modules you want to load */
5 external: "elm"; /* toolkit/widgets */
6 }
7 4
8 name: "example_group"; 5 name: "example_group";
9 min: 50 50; 6 min: 50 50;
@@ -72,18 +69,6 @@ collections {
72 } 69 }
73 } 70 }
74 71
75 part {
76 name: "part_five";
77 type: EXTERNAL;
78 source: "elm/button";
79 api: "part_five" "An elm button using externals";
80 description {
81 state: "default" 0.0;
82 rel1.relative: 0.9 0.5;
83 rel2.relative: 1.0 0.6;
84 params.string: "icon" "apps";
85 }
86 }
87 } 72 }
88 73
89 programs { 74 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,
79 codegen_example_part_four_clear(obj, EINA_TRUE); 79 codegen_example_part_four_clear(obj, EINA_TRUE);
80 _columns_rows_print(obj); 80 _columns_rows_print(obj);
81 codegen_example_part_three_remove_all(obj, EINA_TRUE); 81 codegen_example_part_three_remove_all(obj, EINA_TRUE);
82 part_five_part_five_disabled_set(obj, EINA_TRUE);
83
84 if (part_five_part_five_disabled_get(obj, &disabled))
85 if (disabled)
86 fprintf(stdout, "Button is disabled\n");
87 else
88 fprintf(stdout, "Button is enabled\n");
89 else
90 fprintf(stderr, "Couldn't check if the button is disabled\n");
91 } 82 }
92} 83}
93 84
@@ -188,22 +179,6 @@ main(int argc, char *argv[])
188 if (!codegen_example_part_four_pack(edje_obj, rects[3], 1, 1, 1, 1)) 179 if (!codegen_example_part_four_pack(edje_obj, rects[3], 1, 1, 1, 1))
189 fprintf(stderr, "Cannot add the rectangle 4 to table\n"); 180 fprintf(stderr, "Cannot add the rectangle 4 to table\n");
190 181
191 if (!part_five_part_five_label_set(edje_obj, "new label"))
192 fprintf(stderr, "Cannot set the label of the button\n");
193
194 if (part_five_part_five_label_get(edje_obj, &aux))
195 fprintf(stdout, "Label contents: %s\n", aux);
196 else
197 fprintf(stderr, "Couldn't get the label contents\n");
198
199 if (part_five_part_five_disabled_get(edje_obj, &disabled))
200 if (disabled)
201 fprintf(stdout, "Button is disabled\n");
202 else
203 fprintf(stdout, "Button is enabled\n");
204 else
205 fprintf(stderr, "Couldn't check if the button is disabled\n");
206
207 _columns_rows_print(edje_obj); 182 _columns_rows_print(edje_obj);
208 ecore_evas_show(ee); 183 ecore_evas_show(ee);
209 184