Hello, On Thu, Mar 10, 2016 at 2:24 PM, Andreas Volz <li...@brachttal.net> wrote: > Am Sat, 5 Mar 2016 23:45:55 +0100 schrieb Andreas Volz: > Ok, seems not possible or nobody knows.
Well, current state of edje external is a serious lack of maintainership activity. It is missing function and the API to access it is not that good. You may have seen that their is some effort going on with what is called Efl interface. The idea being that we will have only one API to do the same thing on many different object/part. In your case we are working on providing an efl_text_set that will do work on a part in edje, be it an Edje internal TEXT part or an elementary external entry. Both should be working. We are not there yet. > Is there a good way to find out in my application code if a part is a > external type or a text part? Should I use edje_edit_part_type_get() > for this? I just like to change a text from a common API interface in > my higher level API independent is it's a native Edje TEXT object or a > elm/label. In general it is advised to not use edje_edit_* API, but in your case and looking at what you want to do, I think that's the only solution. > Another idea would be to do something like this (meta code) > > val = edje_object_part_external_object_get(...); > if(!val) > { > // seems not to be an external > edje_object_part_text_set(...); > } > else > { > // edje external, so access params > // modify e.g label param of elm/label > ... You can use here an eo_isa call to figure out which API you can use on the object. -- Cedric BAIL ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel