Enlightenment CVS committal Author : sebastid Project : e17 Module : apps/e
Dir : e17/apps/e/src/modules/battery Modified Files: e_mod_main.c Log Message: E-codingstyle. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/battery/e_mod_main.c,v retrieving revision 1.45 retrieving revision 1.46 diff -u -3 -r1.45 -r1.46 --- e_mod_main.c 21 Sep 2005 01:15:35 -0000 1.45 +++ e_mod_main.c 21 Sep 2005 06:57:36 -0000 1.46 @@ -80,9 +80,9 @@ if (!dia) return NULL; snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing Module: Battery<br>" - "It requires a minimum module API version of: %i.<br>" - "The module API advertized by Enlightenment is: %i.<br>"), - E_MODULE_API_VERSION, m->api->version); + "It requires a minimum module API version of: %i.<br>" + "The module API advertized by Enlightenment is: %i.<br>"), + E_MODULE_API_VERSION, m->api->version); e_dialog_title_set(dia, "Enlightenment Battery Module"); e_dialog_icon_set(dia, "enlightenment/e", 64); @@ -136,21 +136,21 @@ int e_modapi_about(E_Module *m) { - E_Dialog *dia; + E_Dialog *dia; - dia = e_dialog_new(e_container_current_get(e_manager_current_get())); - if (!dia) return 0; - e_dialog_title_set(dia, "Enlightenment Battery Module"); - e_dialog_icon_set(dia, "enlightenment/e", 64); - e_dialog_text_set(dia, _("A basic battery meter that uses either" - "<hilight>ACPI</hilight> or <hilight>APM</hilight><br>" - "on Linux to monitor your battery and AC power adaptor<br>" - "status. This will work under Linux and FreeBSD and is only<br>" - "as accurate as your BIOS or kernel drivers.")); - e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL); - e_win_centered_set(dia->win, 1); - e_dialog_show(dia); - return 1; + dia = e_dialog_new(e_container_current_get(e_manager_current_get())); + if (!dia) return 0; + e_dialog_title_set(dia, "Enlightenment Battery Module"); + e_dialog_icon_set(dia, "enlightenment/e", 64); + e_dialog_text_set(dia, _("A basic battery meter that uses either" + "<hilight>ACPI</hilight> or <hilight>APM</hilight><br>" + "on Linux to monitor your battery and AC power adaptor<br>" + "status. This will work under Linux and FreeBSD and is only<br>" + "as accurate as your BIOS or kernel drivers.")); + e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL); + e_win_centered_set(dia->win, 1); + e_dialog_show(dia); + return 1; } /* module private routines */ @@ -775,17 +775,18 @@ { if (!ef->alarm_triggered) { - E_Dialog *dia; + E_Dialog *dia; - dia = e_dialog_new(e_container_current_get(e_manager_current_get())); - if (!dia) return 0; - e_dialog_title_set(dia, "Enlightenment Battery Module"); - e_dialog_icon_set(dia, "enlightenment/e", 64); - e_dialog_text_set(dia, _("Battery Running Low<br>Your battery is running low.<br>" - "You may wish to switch to an AC source.")); - e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL); - e_win_centered_set(dia->win, 1); - e_dialog_show(dia); + dia = e_dialog_new(e_container_current_get(e_manager_current_get())); + if (!dia) return 0; + e_dialog_title_set(dia, "Enlightenment Battery Module"); + e_dialog_icon_set(dia, "enlightenment/e", 64); + e_dialog_text_set(dia, _("Battery Running Low<br>" + "Your battery is running low.<br>" + "You may wish to switch to an AC source.")); + e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL); + e_win_centered_set(dia->win, 1); + e_dialog_show(dia); } edje_object_signal_emit(face->bat_object, "pulse", ""); } ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs