Enlightenment CVS committal
Author : dj2
Project : e17
Module : apps/e
Dir : e17/apps/e/src/modules/pager
Modified Files:
e_mod_main.c
Log Message:
- move the common code to a function in the e_modules file.
===================================================================
RCS file: /cvsroot/enlightenment/e17/apps/e/src/modules/pager/e_mod_main.c,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -3 -r1.130 -r1.131
--- e_mod_main.c 22 Sep 2005 12:47:45 -0000 1.130
+++ e_mod_main.c 22 Sep 2005 18:17:18 -0000 1.131
@@ -112,23 +112,13 @@
/* check module api version */
if (module->api->version < E_MODULE_API_VERSION)
{
- E_Dialog *dia;
char buf[4096];
-
- 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: Pager<br>"
+ snprintf(buf, sizeof(buf), _("Module API Error<br>Error initializing
Module: %s<br>"
"It requires a minimum module API version
of: %i.<br>"
"The module API advertized by
Enlightenment is: %i.<br>"),
- E_MODULE_API_VERSION, module->api->version);
+ _("Pager"), E_MODULE_API_VERSION,
module->api->version);
- e_dialog_title_set(dia, "Enlightenment Pager 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);
+ e_module_dialog_show(_("Enlightenment Pager Module"), buf);
return NULL;
}
/* actually init pager */
@@ -178,16 +168,8 @@
int
e_modapi_about(E_Module *module)
{
- 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 Pager Module");
- e_dialog_icon_set(dia, "enlightenment/e", 64);
- e_dialog_text_set(dia, _("A pager module to navigate virtual desktops."));
- e_dialog_button_add(dia, _("Ok"), NULL, NULL, NULL);
- e_win_centered_set(dia->win, 1);
- e_dialog_show(dia);
+ e_module_dialog_show(_("Enlightenment Pager Module"),
+ _("A pager module to navigate virtual desktops."));
return 1;
}
-------------------------------------------------------
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