On Tue, 20 Nov 2007 21:11:46 GMT "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> babbled:
> Ahhh... the desklets/applets thing. :) There was a thread > about this sometime back. > > I have some questions about this myself.. Like, what exactly > is an "icon"? (vs. say a "gadget") an icon is something that is part of a filemanager widget. the desktop bg is covered by a filemanager widget (by default). the filemanager module creates on per zone (a zone is a region of a container that covers a whole root window generally. with xinerama you may have 2 or more zones per container, but single-head you will have just 1 zone the size of the container). manager objects manage a root window and create a container (in theory can create multiple - but don't). > How does a fm (or a wm) know how to 'draw' such a thing? > Where does it get info about the thing so that it knows what to do > about it? asks the manage to list all managers - walks all the containers in each manager, then walks all the zones in each container and per zone creates the object in the container evas canvas. there is no limitation for only shelf gadgets to be the only items that can be put on the screen by modules. they can do anything they author wants. people though seem to be blinkered into thinking that the shelf must do everything for them and have every possible use and option ever conceived. the shelf *IS* restrictive. it's MEANT to be. MOST people were organising the old gadgets into rows/edges of the screen and it was a pain to have to do it manually. the shelf provided a container to house this and a place to create a gadcon controller. the shelf doesn't arrange gadgets. it just tells gadcon "here you are, and this is the size i want you to be - by the way, what size can you be at a minimum?". > If the desktop (and/or fm) component can do whatever it now > does with "icons", and whatever else it does with "gadgets", then > why can't it do anything with "whizblings"? Or with "wambots", or > with ..... ? you can. its a few trivial lines of module code to go put any evas object on the desktop. anywhere. a few more to allow you to just move it around anywhere - and a few more to resize. if you REALLY want that. a shelf is NOT THE SOLUTION TO THIS. tyring to use the shelf shows a fundamental mis-understanding of e's internal code and how it all works, and just how trivial it is to do it yourself with custom objects. now if you absolutely MUST recycle gadgets (i don't see this as a good idea - gadgets generally would be designed to be small and live within some containering and management system. if you want full freedom objects i would imagine they should be designed subtley differently as they may not live along the edge of a screen anymore and be small. they many not be able to sanely pop up menus or popups etc. etc., but if it MUST be a gadget you want to just put a gadgon ON THE DESKTOP, and have a different layout smart manager that doesn't lay items out in a line. it's a lot more work, mind you. everyone is always just asking to have a big clock - then someone go and make a clock module that puts itself on the desktop. hell the clock module doesn't do ANYTHING but display an evas object loaded from a edje. the edje does all the work. ALL you need is a module that can select/load 1 or more specific .edj files and place them on your desktop and let you move/resize them. as this is not on the todo list though - i leave it up to someone to go write a module to do just that. it is an utterly trivial exercise to do it and it's not worth getting into a debate over it. the debate will be more work than the module code. > jose. > > _____________________________________________________________ > It pays to Discover. > Apply now! 0% into APR on balance transfers. > http://thirdpartyoffers.juno.com/TGL2121/fc/JKFkuJi7EM0epMP0mou33qRPD9g8ZCKxKmBsOfUsEE0ICmUwcRCdTq/ > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel