Enlightenment CVS committal
Author : sebastid
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/temperature
Modified Files:
e_mod_main.c
Log Message:
E-codingstyle.
===================================================================
RCS file:
/cvsroot/enlightenment/e17/apps/e/src/modules/temperature/e_mod_main.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -3 -r1.36 -r1.37
--- e_mod_main.c 21 Sep 2005 01:18:17 -0000 1.36
+++ e_mod_main.c 21 Sep 2005 06:57:36 -0000 1.37
@@ -46,24 +46,24 @@
/* check module api version */
if (m->api->version < E_MODULE_API_VERSION)
{
- E_Dialog *dia;
- char buf[4096];
+ E_Dialog *dia;
+ char buf[4096];
+
+ dia = e_dialog_new(e_container_current_get(e_manager_current_get()));
+ if (!dia) return NULL;
- dia =
e_dialog_new(e_container_current_get(e_manager_current_get()));
- if (!dia) return NULL;
+ snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing
Module: Temperature<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);
- snprintf(buf, sizeof(buf), _("Module API Error<br>Error
initializing Module: Temperature<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);
-
- e_dialog_title_set(dia, "Enlightenment Temperature Module");
- e_dialog_icon_set(dia, "enlightenment/e", 64);
- e_dialog_text_set(dia, buf);
- e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
- e_win_centered_set(dia->win, 1);
- e_dialog_show(dia);
- return NULL;
+ e_dialog_title_set(dia, "Enlightenment Temperature Module");
+ e_dialog_icon_set(dia, "enlightenment/e", 64);
+ e_dialog_text_set(dia, buf);
+ e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
+ e_win_centered_set(dia->win, 1);
+ e_dialog_show(dia);
+ return NULL;
}
/* actually init temperature */
e = _temperature_new(m);
@@ -109,19 +109,19 @@
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 Temperature Module");
- e_dialog_icon_set(dia, "enlightenment/e", 64);
- e_dialog_text_set(dia, _("A module to measure the <hilight>ACPI Thermal
sensor</hilight> on Linux.<br>"
- "It is especially useful for modern Laptops with high
speed<br>"
- "CPUs that generate a lot of heat."));
- 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 Temperature Module");
+ e_dialog_icon_set(dia, "enlightenment/e", 64);
+ e_dialog_text_set(dia, _("A module to measure the <hilight>ACPI Thermal
sensor</hilight> on Linux.<br>"
+ "It is especially useful for modern Laptops with
high speed<br>"
+ "CPUs that generate a lot of heat."));
+ 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 */
-------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs