summaryrefslogtreecommitdiff
path: root/legacy/edje
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2008-12-20 13:18:27 +0000
committerVincent Torri <vincent.torri@gmail.com>2008-12-20 13:18:27 +0000
commit8b5ff6cb40e054543bb6afe380e2dcd975f1d9ac (patch)
tree3ccaa46b3a25d9d477b82c0861ecb91cbeffcb7f /legacy/edje
parent4821dcf1f8c5a65075cfa46dc5d0c922cccd32de (diff)
make compilation work on Windows XP
SVN revision: 38243
Diffstat (limited to 'legacy/edje')
-rw-r--r--legacy/edje/src/lib/edje_util.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/legacy/edje/src/lib/edje_util.c b/legacy/edje/src/lib/edje_util.c
index cf768fdfbb..0c12710685 100644
--- a/legacy/edje/src/lib/edje_util.c
+++ b/legacy/edje/src/lib/edje_util.c
@@ -1208,27 +1208,26 @@ edje_extern_object_aspect_set(Evas_Object *obj, Edje_Aspect_Control aspect, Evas
1208 } 1208 }
1209} 1209}
1210 1210
1211 1211struct edje_box_layout_builtin {
1212static const struct edje_box_layout_builtin {
1213 const char *name; 1212 const char *name;
1214 Evas_Object_Box_Layout cb; 1213 Evas_Object_Box_Layout cb;
1215} _edje_box_layout_builtin[] = {
1216 /* KEEP SORTED AND UPDATE OFFSETS BELOW AT _edje_box_layout_builtin_find() */
1217 {"horizontal", evas_object_box_layout_horizontal},
1218 {"horizontal_flow", evas_object_box_layout_flow_horizontal},
1219 {"horizontal_homogeneous", evas_object_box_layout_homogeneous_horizontal},
1220 {"horizontal_max", evas_object_box_layout_homogeneous_max_size_horizontal},
1221 {"stack", evas_object_box_layout_stack},
1222 {"vertical", evas_object_box_layout_vertical},
1223 {"vertical_flow", evas_object_box_layout_flow_vertical},
1224 {"vertical_homogeneous", evas_object_box_layout_homogeneous_vertical},
1225 {"vertical_max", evas_object_box_layout_homogeneous_max_size_vertical},
1226 {NULL, NULL}
1227}; 1214};
1228 1215
1229static Evas_Object_Box_Layout 1216static Evas_Object_Box_Layout
1230_edje_box_layout_builtin_find(const char *name) 1217_edje_box_layout_builtin_find(const char *name)
1231{ 1218{
1219 const struct edje_box_layout_builtin _edje_box_layout_builtin[] = {
1220 {"horizontal", evas_object_box_layout_horizontal},
1221 {"horizontal_flow", evas_object_box_layout_flow_horizontal},
1222 {"horizontal_homogeneous", evas_object_box_layout_homogeneous_horizontal},
1223 {"horizontal_max", evas_object_box_layout_homogeneous_max_size_horizontal},
1224 {"stack", evas_object_box_layout_stack},
1225 {"vertical", evas_object_box_layout_vertical},
1226 {"vertical_flow", evas_object_box_layout_flow_vertical},
1227 {"vertical_homogeneous", evas_object_box_layout_homogeneous_vertical},
1228 {"vertical_max", evas_object_box_layout_homogeneous_max_size_vertical},
1229 {NULL, NULL}
1230 };
1232 const struct edje_box_layout_builtin *base; 1231 const struct edje_box_layout_builtin *base;
1233 1232
1234 switch (name[0]) 1233 switch (name[0])