Enlightenment CVS committal Author : devilhorns Project : e_modules Module : wlan
Dir : e_modules/wlan Modified Files: e_mod_main.c Log Message: --edc script ++edje_object_part_text_set =================================================================== RCS file: /cvsroot/enlightenment/e_modules/wlan/e_mod_main.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -3 -r1.6 -r1.7 --- e_mod_main.c 21 Feb 2006 12:23:37 -0000 1.6 +++ e_mod_main.c 22 Feb 2006 10:45:43 -0000 1.7 @@ -435,7 +435,6 @@ int wlan_link = 0; int wlan_level = 0; int wlan_noise = 0; - Edje_Message_String_Set *msg; char in_str[100]; nf = data; @@ -470,13 +469,8 @@ return 1; /* Update the modules text */ - snprintf(in_str, sizeof(in_str), "LNK: %d", wlan_link); + snprintf(in_str, sizeof(in_str), "LNK: %ld", (long)wlan_link); + edje_object_part_text_set(nf->wlan_obj, "link-text", in_str); - msg = malloc(sizeof(Edje_Message_String_Set) - sizeof(char *) + (1 + sizeof(char *))); - msg->count = 1; - msg->str[0] = in_str; - edje_object_message_send(nf->wlan_obj, EDJE_MESSAGE_STRING_SET, 1, msg); - free(msg); - return 1; } ------------------------------------------------------- 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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs