Well, after further examination of the code engage now uses the e17 theme if it is preset, otherwise falls back to the installed module theme.
basically if (!e_theme_edje_object_set(obj, category, group) edje_object_file_set(obj, file, group); which works fine I think. but is "theme/modules/engage" the right theme category to be using? A On Fri, Dec 02, 2005 at 09:04:55AM +0900, Carsten Haitzler wrote: > On Thu, 1 Dec 2005 15:24:43 +0000 Andrew Williams <[EMAIL PROTECTED]> > babbled: > > > 3rd party modules should really use this too - but it needs a fallback > > to the shipped theme. This way advanced e17 themes can specify theme > > parts for optional modules. > > yeah. this is something that needs to be added as a wrapper - e_theme_set) - > if > that fails (the current theme and no fallback has the modules data) load a > SPECIFIC module .edj it is shipped with. > > > A > > > > On Thu, Dec 01, 2005 at 09:56:20PM +0900, David Stevenson wrote: > > > 2005/12/1, Brian Mattern <[EMAIL PROTECTED]>: > > > > > > > > I just committed some code to simplify desktop module creation a little > > > > bit. > > > > Currently, every single module that draws to the desktop is pretty much > > > > just a copy/paste/edit of one of the original few modules. > > > > > > > > > I personally can vouch for that (^_^) > > > > > > To avoid this > > > > mess of duplicated code, I pooled a good portion of it together into > > > > E_Gadget. > > > > Basically, you just have to create an E_Gadget, and provide a few > > > > callback functions. > > > > What I have so far is by no means complete, and has a few issues (i set > > > > gadman defaults AFTER the init callback, so there is no easy way to > > > > override them. this will be fixed shortly). > > > > > > > > You can take a look at src/modules/gadget_test/e_mod_main.c for an > > > > example module (just displays an edje and sets up some dummy menus that > > > > do nothing). > > > > > > > > Anyway, this should make things much simpler. Any input is welcome, and > > > > the API is by no means fixed. > > > > > > > > > On that point I have a question: > > > I imagine 3rd party modules are also intended to be able to use this. > > > The API includes a e_gadget_face_theme_set function, which uses e_theme. > > > Correct me if I am wrong, but 3rd part modules won't be able to use this > > > will they? All the 3rd party modules that I have looked at use > > > edje_object_file_set to set the modules' .edj file. > > > > > > > > > I'm thinking about passing in a struct of function pointers to the > > > > _new() function instead of each individually. That way we could add new > > > > callbacks without API breakage. > > > > > > > > Take a look, and let me know what you think. > > > > -- > > > > rephorm > > > > > > > > > :-) ...Yet another thing to play with! > > > > > > Regards! > > > David > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > > _______________________________________________ > > 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] > 裸好多 > Tokyo, Japan (東京 日本) > ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ enlightenment-devel mailing list enlightenment-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-devel