Enlightenment CVS committal Author : dj2 Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_module.c e_module.h Log Message: - move the common code to a function in the e_modules file. =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_module.c,v retrieving revision 1.35 retrieving revision 1.36 diff -u -3 -r1.35 -r1.36 --- e_module.c 14 Sep 2005 20:19:44 -0000 1.35 +++ e_module.c 22 Sep 2005 18:17:16 -0000 1.36 @@ -456,3 +456,22 @@ } e_menu_item_toggle_set(mi, e_module_enabled_get(mod)); } + +void +e_module_dialog_show(char *title, char *body) +{ + E_Dialog *dia; + + dia = e_dialog_new (e_container_current_get (e_manager_current_get ())); + if (!dia) return; + + e_dialog_title_set (dia, title); + e_dialog_icon_set (dia, "enlightenment/e", 64); + e_dialog_text_set (dia, body); + e_dialog_button_add (dia, _("Ok"), NULL, NULL, NULL); + e_win_centered_set (dia->win, 1); + e_dialog_show (dia); +} + + + =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_module.h,v retrieving revision 1.5 retrieving revision 1.6 diff -u -3 -r1.5 -r1.6 --- e_module.h 7 Feb 2005 13:51:09 -0000 1.5 +++ e_module.h 22 Sep 2005 18:17:16 -0000 1.6 @@ -65,6 +65,7 @@ EAPI E_Module *e_module_find(char *name); EAPI Evas_List *e_module_list(void); EAPI E_Menu *e_module_menu_new(void); +EAPI void e_module_dialog_show(char *title, char *body); #endif #endif ------------------------------------------------------- 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