On Wed, 23 Nov 2011 10:32:51 -0200 Iván Briano (Sachiel) <[email protected]> said:
> 2011/11/23 Enlightenment SVN <[email protected]>: > > Log: > > aaah allow type to be set on group inherit or part inherit... you just > > really shouldnt set it to a different type as its not very sensible. > > > > > > > > Author: raster > > Date: 2011-11-23 02:38:43 -0800 (Wed, 23 Nov 2011) > > New Revision: 65534 > > Trac: http://trac.enlightenment.org/e/changeset/65534 > > > > Modified: > > trunk/edje/src/bin/edje_cc_handlers.c > > > > Modified: trunk/edje/src/bin/edje_cc_handlers.c > > =================================================================== > > --- trunk/edje/src/bin/edje_cc_handlers.c 2011-11-23 08:49:47 UTC > > (rev 65533) +++ trunk/edje/src/bin/edje_cc_handlers.c 2011-11-23 > > 10:38:43 UTC (rev 65534) @@ -2965,13 +2965,6 @@ > > "EXTERNAL", EDJE_PART_TYPE_EXTERNAL, > > "PROXY", EDJE_PART_TYPE_PROXY, > > NULL); > > - > > - if (current_part->default_desc || current_part->other.desc_count > 0) > > - { > > - ERR("%s: Error. parse error %s:%i. You can't change the part type > > in inherited group. (part: %s)", > > - progname, file_in, line - 1, current_part->name); > > - exit(-1); > > - } > > } > > > > Can't we check if the type doesn't match and give an error in that case? we can... except this would break the intial type setting as the struct is newly alloced with 0's all thru... and so u couldnt know the difference between initial set of type and a later change in type. :) we'd need to go add more info/fllags and what not to know its been inherited etc. -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [email protected] ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
