Enlightenment CVS committal Author : devilhorns Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/temperature Modified Files: e_mod_config.c Log Message: Clean up e_mod_config.c =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/temperature/e_mod_config.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- e_mod_config.c 16 Dec 2005 23:53:09 -0000 1.3 +++ e_mod_config.c 17 Dec 2005 22:02:05 -0000 1.4 @@ -27,8 +27,6 @@ char *file; }; -Temperature *t = NULL; - /* Protos */ static Evas_Object *_create_widgets(E_Config_Dialog *cfd, Evas *evas, Config *cfdata); static void *_create_data(E_Config_Dialog *cfd); @@ -44,8 +42,6 @@ E_Config_Dialog *cfd; E_Config_Dialog_View v; - t = temp; - v.create_cfdata = _create_data; v.free_cfdata = _free_data; v.basic.apply_cfdata = _basic_apply_data; @@ -57,7 +53,7 @@ } static void -_fill_data(CFData *cfdata) +_fill_data(Temperature *t, CFData *cfdata) { double p; @@ -154,8 +150,11 @@ { Evas_Object *o, *of, *ob; E_Radio_Group *rg; - - _fill_data(cfdata); + Temperature *t; + + t = cfd->data; + _fill_data(t, cfdata); + o = e_widget_list_add(evas, 0, 0); of = e_widget_framelist_add(evas, _("Display Units"), 0); rg = e_widget_radio_group_new(&(cfdata->unit_method)); @@ -203,6 +202,9 @@ static int _basic_apply_data(E_Config_Dialog *cfd, CFData *cfdata) { + Temperature *t; + + t = cfd->data; e_border_button_bindings_ungrab_all(); if (cfdata->unit_method == 0) { @@ -253,8 +255,10 @@ { Evas_Object *o, *of, *ob; E_Radio_Group *rg; - - _fill_data(cfdata); + Temperature *t; + + t = cfd->data; + _fill_data(t, cfdata); o = e_widget_list_add(evas, 0, 0); of = e_widget_framelist_add(evas, _("Display Units"), 0); @@ -328,6 +332,10 @@ static int _advanced_apply_data(E_Config_Dialog *cfd, CFData *cfdata) { + Temperature *t; + + t = cfd->data; + e_border_button_bindings_ungrab_all(); if (cfdata->unit_method == 0) { ------------------------------------------------------- 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-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs