Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : proto

Dir     : e17/proto/entropy/src/dialogs


Modified Files:
        etk_options_dialog.c 


Log Message:
* Hook config further into config_core

===================================================================
RCS file: /cvs/e/e17/proto/entropy/src/dialogs/etk_options_dialog.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- etk_options_dialog.c        31 Aug 2006 12:29:15 -0000      1.5
+++ etk_options_dialog.c        31 Aug 2006 13:09:34 -0000      1.6
@@ -85,7 +85,23 @@
 
 void entropy_etk_options_dialog_close(Etk_Object* obj, void* data)
 {
+       Entropy_Etk_Options_Object* c_obj;
+       Ecore_List* keys;
+       char* key;
+       
        etk_widget_hide(_entropy_etk_options_dialog);
+
+       if ((int)data == 0) {
+               printf("Save config selected..\n");
+
+               keys = ecore_hash_keys(_entropy_global_options_hash);
+               while ((key = ecore_list_remove_first(keys))) {
+                       c_obj = ecore_hash_get(_entropy_global_options_hash, 
key);
+                       printf("'%s' -> '%s'\n", key, c_obj->value);
+
+                       entropy_config_misc_item_set_str(key,c_obj->value);
+               }
+       }
 }
 
 void etk_options_dialog_slider_cb(Etk_Object* obj, double value, void* data)



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to