On Wed, Nov 17, 2010 at 9:40 PM, Carsten Haitzler <[email protected]> wrote: > On Thu, 18 Nov 2010 00:13:42 +0100 Andreas Volz <[email protected]> said: > >> Am Wed, 17 Nov 2010 20:18:11 -0200 schrieb Gustavo Sverzut Barbieri: >> >> > On Wed, Nov 17, 2010 at 8:05 PM, Andreas Volz <[email protected]> >> > wrote: >> > > Hello, >> > > >> > > I got told on this list that edje_object_part_external_param_set >> > > works with all writable object parameters. Also with internal >> > > objects. But I tried it and it fails: >> > > >> > > ERR<25694>:edje edje_external.c:593 _edje_external_param_set() no >> > > external type for object (nil) >> > > >> > > This is my code: >> > > >> > > Edje_External_Param param; >> > > param.type = EDJE_EXTERNAL_PARAM_TYPE_STRING; >> > > param.name = "text"; >> > > param.s = "Changed Value"; >> > > >> > > // this doesn't work! >> > > edje_object_part_external_param_set (eo, "Text_Example", ¶m); >> > > >> > > // this works! >> > > //edje_object_part_text_set (eo, "Text_Example", "Changed >> > > Value"); >> > > >> > > If I look in the reference edje_external.c I see why it fails. So >> > > how is it possible to modify internal object params as generic as >> > > externals? >> > >> > error message should says eo == NULL. >> >> Maybe I don't understand this comment. But eo isn't NULL for sure. In >> each case eo is correct as edje_object_part_text_set works correct with >> this eo if I remove the comments. >> >> regards >> Andreas > > it has to be an external part - not a text one for it to work. i smell that > you > have a text part there as "Test_Example" and think u can just change text > value > via params too.
Yes, that is just supported from PARAM_SET or PARAM_COPY actions. It was done to allow one setting text from some external stuff, like another text (from an entry) or a boolean (like the "play" from emotion, that will be automatically converted to text. -- Gustavo Sverzut Barbieri http://profusion.mobi embedded systems -------------------------------------- MSN: [email protected] Skype: gsbarbieri Mobile: +55 (19) 9225-2202 ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
