Jason Tackaberry wrote: > Dirk Meyer wrote on 23/07/08 01:34 PM: >> Everytime I read something like this (also in my code) I do not like >> that fact that you have to use height for rectangle and a font size >> for the label. I guess label should also have a height and calculate >> the font size based on it. I will think about how to fix it, not your >> problem. > > Hmm, that's too bad. Let me give you an idea how I implemented this in > DEPRECATED/candy, maybe you can adapt it.
Your idee sounds nice, but IMHO it is independed of the problem above. To implement your idea kaa.candy needs to support position and size as percentage. Right now this is not possible, you always have to use fixed values. I compensate this by making the XML file scale. But a feature like a dynamic container is nice to have for the future. But I see one tiny problem. When you add or mondify widgets you are in the clutter thread. Either from the kaa mainthread or because of a clutter callback. Now you change stuff. You do not want to call some sort of render function until the task is done and we go back to the glib mainloop. I have no way of knowing when this will happen. Because of that all widgets render either in the constructor, when set visible or as soon as they change (e.g. if you change two things with set_something it is rendered twice). So on the todo list: find a point when to render something. After that we can support percentage and we calculate it when needed. After that we can add active and passive. Dischi -- I say no to drugs, They just don't listen... ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel