I've looked at gadget_test/e_mod_main.c, and it looks good to me so far. 

I like how it really simplifies things. A real test IMOHO though, would be
to use one of the existing simple modules (desktop name? or one simpler?),
as the real test bed. It will be a more compelling example, and
bugs/oversights will show up faster. What do you think?

Overall, I think module development just got one huge step in the fun
department, and we can optimize away e_gadget.c to our hearts content...
thnx Brian.

Essien

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Brian
Mattern
Sent: Thursday, December 01, 2005 6:32 AM
To: enlightenment-devel@lists.sourceforge.net
Subject: [E-devel] E_Gadget commit

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


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





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

Reply via email to