Enlightenment CVS committal
Author : raster
Project : e17
Module : libs/edje
Dir : e17/libs/edje/src/bin
Modified Files:
edje_cc_handlers.c
Log Message:
just when you thoguht all was stable in edje land... i added a tag and field!
never fear. its backwards compatible. this lets you choose how aspect is
calculated and confined :)
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/edje/src/bin/edje_cc_handlers.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -3 -r1.30 -r1.31
--- edje_cc_handlers.c 25 Apr 2004 04:20:56 -0000 1.30
+++ edje_cc_handlers.c 24 May 2004 07:58:36 -0000 1.31
@@ -38,6 +38,7 @@
static void st_collections_group_parts_part_description_max(void);
static void st_collections_group_parts_part_description_step(void);
static void st_collections_group_parts_part_description_aspect(void);
+static void st_collections_group_parts_part_description_aspect_preference(void);
static void st_collections_group_parts_part_description_rel1_relative(void);
static void st_collections_group_parts_part_description_rel1_offset(void);
static void st_collections_group_parts_part_description_rel1_to(void);
@@ -109,6 +110,7 @@
{"collections.group.parts.part.description.max",
st_collections_group_parts_part_description_max},
{"collections.group.parts.part.description.step",
st_collections_group_parts_part_description_step},
{"collections.group.parts.part.description.aspect",
st_collections_group_parts_part_description_aspect},
+ {"collections.group.parts.part.description.aspect_preference",
st_collections_group_parts_part_description_aspect_preference},
{"collections.group.parts.part.description.rel1.relative",
st_collections_group_parts_part_description_rel1_relative},
{"collections.group.parts.part.description.rel1.offset",
st_collections_group_parts_part_description_rel1_offset},
{"collections.group.parts.part.description.rel1.to",
st_collections_group_parts_part_description_rel1_to},
@@ -184,6 +186,7 @@
{"collections.group.parts.part.description.max", NULL},
{"collections.group.parts.part.description.step", NULL},
{"collections.group.parts.part.description.aspect", NULL},
+ {"collections.group.parts.part.description.aspect_preference", NULL},
{"collections.group.parts.part.description.rel1", NULL},
{"collections.group.parts.part.description.rel1.relative", NULL},
{"collections.group.parts.part.description.rel1.offset", NULL},
@@ -716,6 +719,24 @@
}
static void
+st_collections_group_parts_part_description_aspect_preference(void)
+{
+ Edje_Part_Collection *pc;
+ Edje_Part *ep;
+ Edje_Part_Description *ed;
+
+ pc = evas_list_data(evas_list_last(edje_collections));
+ ep = evas_list_data(evas_list_last(pc->parts));
+ ed = ep->default_desc;
+ if (ep->other_desc) ed = evas_list_data(evas_list_last(ep->other_desc));
+ ed->aspect.prefer = parse_enum(0,
+ "NONE", EDJE_ASPECT_PREFER_NONE,
+ "VERTICAL", EDJE_ASPECT_PREFER_VERTICAL,
+ "HORIZONTAL", EDJE_ASPECT_PREFER_HORIZONTAL,
+ NULL);
+}
+
+static void
st_collections_group_parts_part_description_rel1_relative(void)
{
Edje_Part_Collection *pc;
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs