forked from enlightenment/enlightenment
65 lines
1.5 KiB
C
65 lines
1.5 KiB
C
|
/*
|
||
|
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||
|
*/
|
||
|
#include "e.h"
|
||
|
#include "e_mod_main.h"
|
||
|
|
||
|
/***************************************************************************/
|
||
|
/**/
|
||
|
/* actual module specifics */
|
||
|
|
||
|
static E_Module *conf_module = NULL;
|
||
|
|
||
|
/**/
|
||
|
/***************************************************************************/
|
||
|
|
||
|
/***************************************************************************/
|
||
|
/**/
|
||
|
|
||
|
/**/
|
||
|
/***************************************************************************/
|
||
|
|
||
|
/***************************************************************************/
|
||
|
/**/
|
||
|
/* module setup */
|
||
|
EAPI E_Module_Api e_modapi =
|
||
|
{
|
||
|
E_MODULE_API_VERSION,
|
||
|
"Configuration - Virtual Desktops"
|
||
|
};
|
||
|
|
||
|
EAPI void *
|
||
|
e_modapi_init(E_Module *m)
|
||
|
{
|
||
|
e_configure_registry_category_add("screen", 30, _("Screen"), NULL, "enlightenment/screen_setup");
|
||
|
e_configure_registry_item_add("screen/virtual_desktops", 10, _("Virtual Desktops"), NULL, "enlightenment/desktops", e_int_config_desks);
|
||
|
conf_module = m;
|
||
|
return m;
|
||
|
}
|
||
|
|
||
|
EAPI int
|
||
|
e_modapi_shutdown(E_Module *m)
|
||
|
{
|
||
|
E_Config_Dialog *cfd;
|
||
|
while ((cfd = e_config_dialog_get("E", "_config_desks_dialog"))) e_object_del(E_OBJECT(cfd));
|
||
|
e_configure_registry_item_del("screen/virtual_desktops");
|
||
|
e_configure_registry_category_del("screen");
|
||
|
conf_module = NULL;
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
EAPI int
|
||
|
e_modapi_save(E_Module *m)
|
||
|
{
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
EAPI int
|
||
|
e_modapi_about(E_Module *m)
|
||
|
{
|
||
|
e_module_dialog_show(m,
|
||
|
_("Enlightenment Configuration Module - Virtual Desktops"),
|
||
|
_("Configuration dialog for virtual desktops."));
|
||
|
return 1;
|
||
|
}
|