Looks good Stafford, I'm just going to run it through a couple tests
and then commit it.


On Sun, 20 Mar 2005 21:21:34 +0800, Stafford Horne <[EMAIL PROTECTED]> wrote:
> Hello all,
> 
> This patch fixes a few things which help in changing EWL themes.
> 
> There are three basic parts:
> 
> 1.  Call ecore_config_load after initializing the ecore_config. This
> allows us to load the system configuration... not just use the defaults
> 
> COOL STUFF:  this now allows us to write a program like this:
> 
> ::e_client.c::
> 
> #include <Ecore_Config.h>
>                                                                              
> int main(int argc, char ** argv) {
>                                                                               
>   ecore_config_system_init();
> ecore_config_load();
> ecore_config_string_set("/ewl/theme/name", argv[1]);
> ecore_config_save();
> ecore_config_system_shutdown();
> return 0;
> }
> 
> gcc -o client e_client.c `ecore-config --libs --cflags`
> 
> Compile the program, and now you can do ./client <theme_name> to
> permanently set the EWL theme. (NOTE: we should be able to do this with
> examine too, but its busted up pretty bad right now for use with
> _system)
> 
> 2. In ewl_init, whenever there is a fail return the init count minus
> one. This seems to have been forgotten in a few places.
> 
> 3. In ewl_theme, when we can't load a theme (because the name is
> incorrect or something) I hard-coded to fall back to the "default"
> theme.
> 
> Another thing, I did not add the ecore_config_save to
> ewl_config_shutdown, because i expect we should only be running
> ecore_config_save if the program is a configuration manipulation
> application.
> 
> Stafford
> 
> 
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to