Enlightenment CVS committal Author : handyande Project : misc Module : engage
Dir : misc/engage/src/module Modified Files: Makefile.am e_mod_main.c e_mod_main.h Added Files: e_mod_config.c e_mod_config.h Log Message: Add config panel to engage, not complete and needs some callbakc,s but it is there =================================================================== RCS file: /cvsroot/enlightenment/misc/engage/src/module/Makefile.am,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- Makefile.am 11 Jun 2005 23:57:16 -0000 1.4 +++ Makefile.am 30 Dec 2005 20:03:26 -0000 1.5 @@ -17,7 +17,9 @@ pkg_LTLIBRARIES = module.la module_la_SOURCES = e_mod_main.c \ tray.c \ - e_mod_main.h + e_mod_config.h \ + e_mod_config.c \ + e_mod_main.h module_la_LIBADD = @e_libs@ -lm module_la_LDFLAGS = -module -avoid-version module_la_DEPENDENCIES = $(top_builddir)/config.h =================================================================== RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.c,v retrieving revision 1.101 retrieving revision 1.102 diff -u -3 -r1.101 -r1.102 --- e_mod_main.c 18 Dec 2005 21:40:02 -0000 1.101 +++ e_mod_main.c 30 Dec 2005 20:03:26 -0000 1.102 @@ -159,7 +159,11 @@ Engage *e; if (m->config_menu) - m->config_menu = NULL; + { + e_menu_deactivate(m->config_menu); + e_object_del(E_OBJECT(m->config_menu)); + m->config_menu = NULL; + } e = m->data; if (e) @@ -195,6 +199,29 @@ return 1; } +int +e_modapi_config(E_Module *m) +{ + Engage *e; + Evas_List *l; + E_Container *current; + + e = m->data; + current = e_container_current_get(e_manager_current_get()); + for (l = e->bars; l; l = l->next) + { + Engage_Bar *eb; + + eb = l->data; + if (eb->con == current) + { + _engage_module_config(current, eb); + break; + } + } + return 1; +} + /* module private routines */ static Engage * _engage_new() @@ -2699,3 +2726,13 @@ return 0; } + +void +_engage_cb_config_updated(void *data) +{ + Engage_Bar *eb; + + eb = data; + _engage_bar_frame_resize(eb); +} + =================================================================== RCS file: /cvsroot/enlightenment/misc/engage/src/module/e_mod_main.h,v retrieving revision 1.29 retrieving revision 1.30 diff -u -3 -r1.29 -r1.30 --- e_mod_main.h 18 Dec 2005 17:57:41 -0000 1.29 +++ e_mod_main.h 30 Dec 2005 20:03:26 -0000 1.30 @@ -120,12 +120,15 @@ E_Border *border; }; -extern E_Module_Api e_modapi; +EAPI extern E_Module_Api e_modapi; EAPI void *e_modapi_init (E_Module *m); EAPI int e_modapi_shutdown (E_Module *m); EAPI int e_modapi_save (E_Module *m); EAPI int e_modapi_info (E_Module *m); EAPI int e_modapi_about (E_Module *m); +EAPI int e_modapi_config (E_Module *m); + +void _engage_cb_config_update(void *data); #endif ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs