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", &param);
> > >
> > >    // 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.

-- 
------------- Codito, ergo sum - "I code, therefore I am" --------------
The Rasterman (Carsten Haitzler)    [email protected]


------------------------------------------------------------------------------
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

Reply via email to