static void st_collections_group_alias(void);
static void st_collections_group_min(void);
static void st_collections_group_max(void);
+static void st_collections_group_broadcast_signal(void);
static void st_collections_group_data_item(void);
static void st_collections_group_orientation(void);
{"collections.group.alias", st_collections_group_alias},
{"collections.group.min", st_collections_group_min},
{"collections.group.max", st_collections_group_max},
+ {"collections.group.broadcast_signal", st_collections_group_broadcast_signal},
{"collections.group.orientation", st_collections_group_orientation},
{"collections.group.data.item", st_collections_group_data_item},
{"collections.group.limits.horizontal", st_collections_group_limits_horizontal},
pc = mem_alloc(SZ(Edje_Part_Collection));
edje_collections = eina_list_append(edje_collections, pc);
pc->id = current_de->id;
+ pc->broadcast_signal = EINA_TRUE; /* This was the behaviour by default in Edje 1.1 */
cd = mem_alloc(SZ(Code));
codes = eina_list_append(codes, cd);
}
/**
+ @page edcref
+ @property
+ broadcast_signal
+ @parameters
+ [broadcast]
+ @effect
+ Signal got automatically broadcasted to all sub group part. Default to
+ true since 1.1.
+ @endproperty
+*/
+static void
+st_collections_group_broadcast_signal(void)
+{
+ Edje_Part_Collection *pc;
+
+ check_arg_count(1);
+
+ pc = eina_list_data_get(eina_list_last(edje_collections));
+ pc->broadcast_signal = parse_bool(0);
+}
+
+/**
@page edcref
@block
script
edc->references = 1;
edc->part = ce->entry;
- /* For Edje file build with Edje 1.0, people expect text.align to be 0.0 0.0 */
+ /* For Edje file build with Edje 1.0 */
if (edf->version <= 3 && edf->minor <= 1)
{
/* This will preserve previous rendering */
unsigned int i;
+ /* people expect signal to not be broadcasted */
+ edc->broadcast_signal = EINA_FALSE;
+
+ /* people expect text.align to be 0.0 0.0 */
for (i = 0; i < edc->parts_count; ++i)
{
if (edc->parts[i]->type == EDJE_PART_TYPE_TEXTBLOCK)
/* increment this when you add new feature to edje file format without
* breaking backward compatibility.
*/
-#define EDJE_FILE_MINOR 2
+#define EDJE_FILE_MINOR 3
/* FIXME:
*
unsigned char lua_script_only;
+ unsigned char broadcast_signal;
+
unsigned char checked : 1;
};