Enlightenment CVS committal
Author : devilhorns
Project : e_modules
Module : weather
Dir : e_modules/weather
Modified Files:
e_mod_config.c
Log Message:
Update some e_modules to use module icons in their config dialogs.
===================================================================
RCS file: /cvs/e/e_modules/weather/e_mod_config.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- e_mod_config.c 29 May 2006 22:57:31 -0000 1.10
+++ e_mod_config.c 3 Jul 2006 07:37:33 -0000 1.11
@@ -21,7 +21,8 @@
E_Config_Dialog *cfd;
E_Config_Dialog_View *v;
E_Container *con;
-
+ char buf[4096];
+
v = E_NEW(E_Config_Dialog_View, 1);
v->create_cfdata = _create_data;
@@ -30,8 +31,9 @@
v->basic.create_widgets = _basic_create_widgets;
v->override_auto_apply = 1;
+ snprintf(buf, sizeof(buf), "%s/module.eap",
e_module_dir_get(weather_config->module));
con = e_container_current_get(e_manager_current_get());
- cfd = e_config_dialog_new(con, D_("Weather Configuration"), NULL, 0, v, ci);
+ cfd = e_config_dialog_new(con, D_("Weather Configuration"), buf, 0, v, ci);
weather_config->config_dialog = cfd;
}
@@ -131,7 +133,16 @@
ci->poll_time = (cfdata->poll_time * 60.0);
if (ci->code)
evas_stringshare_del(ci->code);
- ci->code = evas_stringshare_add((char *)toupper(cfdata->code));
+
+ char *t;
+ t = cfdata->code;
+ while ((*t != '\0') && (*t != ' '))
+ {
+ *t = toupper(*t);
+ t++;
+ }
+ *t = '\0';
+ ci->code = evas_stringshare_add(t);
e_config_save_queue();
_weather_config_updated(ci->id);
return 1;
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs