aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/edje
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/edje')
-rw-r--r--src/bin/edje/edje_cc_handlers.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/bin/edje/edje_cc_handlers.c b/src/bin/edje/edje_cc_handlers.c
index 6786104269..e5109d1c8d 100644
--- a/src/bin/edje/edje_cc_handlers.c
+++ b/src/bin/edje/edje_cc_handlers.c
@@ -202,6 +202,7 @@ static void *_part_free(Edje_Part_Collection *pc, Edje_Part *ep);
static void check_has_anchors(void);
+static void st_id(void);
static void st_efl_version(void);
static void st_externals_external(void);
@@ -701,6 +702,7 @@ static void _handle_vector_image(void);
New_Statement_Handler statement_handlers[] =
{
+ {"id", st_id},
{"efl_version", st_efl_version},
{"externals.external", st_externals_external},
IMAGE_STATEMENTS("")
@@ -2223,6 +2225,30 @@ st_efl_version(void)
edje_file->efl_version.minor = parse_int(1);
}
+/** @edcsubsection{toplevel_id,
+ * id} */
+
+/**
+ @page edcref
+
+ @property
+ id
+ @parameters
+ [name]
+ @effect
+ A string which is used to identify the edje file.
+ @since 1.21
+ @endproperty
+ */
+static void
+st_id(void)
+{
+ check_arg_count(1);
+
+ free(edje_file->id);
+ edje_file->id = parse_str(0);
+}
+
/** @edcsubsection{toplevel_externals,
* Externals} */