2007-07-28 19:12:51 -07:00
# 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 ,
2008-11-22 00:42:54 -08:00
" Settings - Window Manipulation "
2007-07-28 19:12:51 -07:00
} ;
EAPI void *
e_modapi_init ( E_Module * m )
{
2009-03-04 18:39:50 -08:00
e_configure_registry_category_add ( " windows " , 50 , _ ( " Windows " ) , NULL , " preferences-system-windows " ) ;
2011-04-30 05:59:53 -07:00
e_configure_registry_item_add ( " windows/window_display " , 10 , _ ( " Window Display " ) , NULL , " preferences-system-windows " , e_int_config_window_display ) ;
e_configure_registry_item_add ( " windows/window_focus " , 20 , _ ( " Window Focus " ) , NULL , " preferences-focus " , e_int_config_focus ) ;
2009-03-15 10:41:46 -07:00
e_configure_registry_item_add ( " windows/window_geometry " , 30 , _ ( " Window Geometry " ) , NULL , " preferences-window-geometry " , e_int_config_window_geometry ) ;
2012-07-09 22:01:00 -07:00
e_configure_registry_item_add ( " windows/window_list_menu " , 40 , _ ( " Window List Menu " ) , NULL , " preferences-winlist " , e_int_config_clientlist ) ;
e_configure_registry_item_add ( " windows/window_process " , 50 , _ ( " Window Process Management " ) , NULL , " preferences-window-process " , e_int_config_window_process ) ;
2007-07-28 19:12:51 -07:00
conf_module = m ;
2007-07-29 03:24:56 -07:00
e_module_delayed_set ( m , 1 ) ;
2007-07-28 19:12:51 -07:00
return m ;
}
EAPI int
2010-03-02 10:09:39 -08:00
e_modapi_shutdown ( E_Module * m __UNUSED__ )
2007-07-28 19:12:51 -07:00
{
E_Config_Dialog * cfd ;
2011-12-25 23:01:00 -08:00
while ( ( cfd = e_config_dialog_get ( " E " , " windows/window_process " ) ) ) e_object_del ( E_OBJECT ( cfd ) ) ;
2012-01-02 19:29:25 -08:00
while ( ( cfd = e_config_dialog_get ( " E " , " windows/window_list_menu " ) ) ) e_object_del ( E_OBJECT ( cfd ) ) ;
2009-12-04 14:37:18 -08:00
while ( ( cfd = e_config_dialog_get ( " E " , " windows/window_geometry " ) ) ) e_object_del ( E_OBJECT ( cfd ) ) ;
2011-04-30 05:59:53 -07:00
while ( ( cfd = e_config_dialog_get ( " E " , " windows/window_focus " ) ) ) e_object_del ( E_OBJECT ( cfd ) ) ;
while ( ( cfd = e_config_dialog_get ( " E " , " windows/window_display " ) ) ) e_object_del ( E_OBJECT ( cfd ) ) ;
2011-12-25 23:01:00 -08:00
e_configure_registry_item_del ( " windows/window_process " ) ;
2012-01-02 19:29:25 -08:00
e_configure_registry_item_del ( " windows/window_list_menu " ) ;
2011-04-30 05:59:53 -07:00
e_configure_registry_item_del ( " windows/window_geometry " ) ;
e_configure_registry_item_del ( " windows/window_focus " ) ;
e_configure_registry_item_del ( " windows/window_display " ) ;
2007-07-28 19:12:51 -07:00
e_configure_registry_category_del ( " windows " ) ;
conf_module = NULL ;
return 1 ;
}
EAPI int
2010-03-02 10:09:39 -08:00
e_modapi_save ( E_Module * m __UNUSED__ )
2007-07-28 19:12:51 -07:00
{
return 1 ;
}