/*
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
*/
#include "e.h"
/* local subsystem functions */
static void _e_about_free(E_About *about);
static void _e_about_cb_delete(E_Win *win);
static void _e_dialog_cb_close(void *data, Evas_Object *obj, const char *emission, const char *source);
/* local subsystem globals */
/* externally accessible functions */
E_About *
e_about_new(E_Container *con)
{
E_About *about;
E_Manager *man;
Evas_Object *o;
if (!con)
{
man = e_manager_current_get();
if (!man) return NULL;
con = e_container_current_get(man);
if (!con) con = e_container_number_get(man, 0);
if (!con) return NULL;
}
about = E_OBJECT_ALLOC(E_About, E_ABOUT_TYPE, _e_about_free);
if (!about) return NULL;
about->win = e_win_new(con);
if (!about->win)
{
free(about);
return NULL;
}
e_win_delete_callback_set(about->win, _e_about_cb_delete);
about->win->data = about;
e_win_name_class_set(about->win, "E", "_about");
e_win_title_set(about->win, _("About Enlightenment"));
o = edje_object_add(e_win_evas_get(about->win));
about->bg_object = o;
e_theme_edje_object_set(o, "base/theme/about",
"widgets/about/main");
evas_object_move(o, 0, 0);
evas_object_show(o);
edje_object_part_text_set(about->bg_object, "title", _("Enlightenment"));
edje_object_part_text_set(about->bg_object, "version", VERSION);
edje_object_part_text_set
(about->bg_object, "about",
_(
"Copyright © 1999-2005, by the Enlightenment Development Team.
"
"
"
"We hope you enjoy using this software as much as we enjoyed "
"writing it.
"
"
"
"This software is provided as-is with no explicit or implied "
"warranty. This software is goverened by licensing conditions, "
"so please see the COPYING and COPYING-PLAIN licence files "
"installed on your system by this software.
"
"
"
"Enlightenment is under