aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-plugin.c
Commit message (Collapse)AuthorAgeFilesLines
* Delete e_mkdir_hier(), and use e_util_mkdir_hier() instead of it.Simon Zheng2006-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2006-01-10 Simon Zheng <simon.zheng@sun.com> * e-mktemp.c (get_dir): * e-plugin.c: * e-util.[ch] (e_create_directory): (e_sort): Delete e_mkdir_hier(), and use e_util_mkdir_hier() instead of it. Delete e_strstrcasea(), and use e_util_strstrcase() instead of it. Delete e_strftime(), use the copy in evolution-data-server/ libedataserver/e-data-server-util.c instead of it. Delete e_filename_make_safe(), and use the copy in evolution-data-server/libedataserver/e-data-server-util.c instead of it. Detelte e_utf8_strftime(), and use the copy in evolution-data-server/libedataserver/e-data-server-util.c instead of it. svn path=/trunk/; revision=31117
* e-plugin.c (epl_construct) [Win32] The interface ofTor Lillqvist2006-01-051-2/+4
| | | | | | | | | | 2006-01-05 Tor Lillqvist <tml@novell.com> * e-plugin.c (epl_construct) * e-menu.c (emph_construct_menu): [Win32] The interface of e_util_replace_prefix() changed a bit. svn path=/trunk/; revision=31053
* Use GLib API where applicable for portability.Tor Lillqvist2005-12-181-18/+43
| | | | | | | | | | | | | | | | | | | 2005-12-17 Tor Lillqvist <tml@novell.com> * e-plugin.c: Use GLib API where applicable for portability. * e-plugin.c: Use e_xml_parse_file() and e_xml_save_file() instead of using libxml directly. * e-plugin.c: Add copyright header. (epl_construct): [Win32 only:] Remap the plugin location from the compile-time path to to a run-time path, to handle the common case where the location in the .eplug file is in Evo's compile-time prefix. Use libedataserver's e_util_get_prefix() and e_util_replace_prefix(). We could alternatively use relative paths in the .eplug files on Win32, like we do for .server files. svn path=/trunk/; revision=30825
* e-plugin.c (ep_set_enabled): Fix compiler warning on early bailoutDavid Malcolm2005-08-231-1/+2
| | | | svn path=/trunk/; revision=30204
* fixed a typo: s/occured/occurred/gJens Seidel2005-08-221-1/+1
| | | | svn path=/trunk/; revision=30180
* Removed, these are now implemented as a plugin.Not Zed2005-05-251-81/+199
| | | | | | | | | | | | | | | | | | 2005-05-25 Not Zed <NotZed@Ximian.com> * e-plugin-mono.[ch]: Removed, these are now implemented as a plugin. * e-plugin.c (ep_load_plugin): separate out plugin xml loading code from the loading loop. If a plugin type doesn't exist, then save it in a list for later checking. (ep_load): call above to do the work. (e_plugin_register_type): check the pending doc list, if any plugins now have a type, load them. (e_plugin_type_hook_get_type): a plugin hook for registering new plugin types ('loaders') at runtime. svn path=/trunk/; revision=29412
* include config.h.Not Zed2004-12-221-0/+11
| | | | | | | | | | | | | | | | | | 2004-12-22 Not Zed <NotZed@Ximian.com> * e-plugin.c: include config.h. 2004-12-17 Not Zed <NotZed@Ximian.com> * e-popup.c (e_popup_add_items): add a translation domain to api. (e_popup_create_menu): translate the label using the supplied domain. (emph_popup_factory): pass domain to popup_add_items. * e-plugin.c (ep_construct): if we have a localedir set, then bindtextdomain so gettext can find it. svn path=/trunk/; revision=28175
* kill warning if we can't open the path.Not Zed2004-12-081-1/+1
| | | | | | | | | 2004-12-08 Not Zed <NotZed@Ximian.com> * e-plugin.c (e_plugin_load_plugins): kill warning if we can't open the path. svn path=/trunk/; revision=28084
* removed, code moved into camel-net-utils.[ch].Not Zed2004-12-031-1/+1
| | | | | | | | | | | | | | | | 2004-11-16 Not Zed <NotZed@Ximian.com> * e-host-utils.[ch]: removed, code moved into camel-net-utils.[ch]. 2004-11-15 Not Zed <NotZed@Ximian.com> * e-trie.[ch], e-memory.[ch], e-sexp.[ch], e-msgport.[ch]: Moved to eds/libedataserver. * e-path.[ch]: removed & deleted. svn path=/trunk/; revision=28050
* get the image directly from the icon factoryJP Rosevear2004-11-261-8/+8
| | | | | | | | | | | | | | | | | | | | | | 2004-11-26 JP Rosevear <jpr@novell.com> * e-gui-utils.c (e_create_image_widget): get the image directly from the icon factory * e-config.c: insert debug defines so we can turn spew on and off * e-event.c: insert debug defines so we can turn spew on and off * e-menu.c: insert debug defines so we can turn spew on and off * e-plugin.c: insert debug defines and set to off for now * e-popup.c: insert debug defines so we can turn spew on and off (e_popup_create_menu): get the image directly from the icon factory svn path=/trunk/; revision=27997
* if the plugin fails to load just disable it, don't unref it (it may beNot Zed2004-11-191-7/+5
| | | | | | | | | 2004-11-19 Not Zed <NotZed@Ximian.com> * e-plugin.c (ep_load): if the plugin fails to load just disable it, don't unref it (it may be referenced elsewhere). svn path=/trunk/; revision=27944
* split out module loadng code. (epl_construct): if we're enabled, andNot Zed2004-11-181-20/+47
| | | | | | | | | | 2004-11-18 Not Zed <NotZed@Ximian.com> * e-plugin.c (epl_loadmodule): split out module loadng code. (epl_construct): if we're enabled, and load-on-startup is set, load the module right away. Not to be abused! svn path=/trunk/; revision=27939
* added helper api to list all plugins. (ep_construct): load authors intoNot Zed2004-11-031-11/+127
| | | | | | | | | | | | | | 2004-11-03 Not Zed <NotZed@Ximian.com> * e-plugin.c (e_plugin_list_plugins): added helper api to list all plugins. (ep_construct): load authors into new list for them. (e_plugin_register_type): setup disabled list. (ep_construct): dont load the hooks if we're not enabled. (e_plugin_enable): make this a virutal method. (e_plugin_invoke): if we're disabled, noop. svn path=/trunk/; revision=27809
* check for empty trailing sections/pages after we exit the main loop.Not Zed2004-10-201-3/+4
| | | | | | | | | | | | | | | | 2004-10-20 Not Zed <NotZed@Ximian.com> * e-config.c (ec_rebuild): check for empty trailing sections/pages after we exit the main loop. * e-plugin.c (e_plugin_get_type): make ~/.eplugins the default eplugin location, not ~/.eplug. 2004-10-18 Not Zed <NotZed@Ximian.com> * e-config.h: fix some forward decls. svn path=/trunk/; revision=27644
* convert to org.gnome hook namesJP Rosevear2004-10-201-5/+5
| | | | | | | | | 2004-10-19 JP Rosevear <jpr@novell.com> * e-config.c, e-event.c, e-menu.c, e-plugin.c, e-plugin.h, e-popup.c: convert to org.gnome hook names svn path=/trunk/; revision=27633
* fix typoJP Rosevear2004-10-081-1/+1
| | | | | | | | 2004-10-08 JP Rosevear <jpr@novell.com> * e-plugin.c (ep_load): fix typo svn path=/trunk/; revision=27505
* handle wrong root element properly. From David TrowbridgeNot Zed2004-10-081-2/+5
| | | | | | | | | 2004-10-08 Not Zed <NotZed@Ximian.com> * e-plugin.c (ep_load): handle wrong root element properly. From David Trowbridge <David.Trowbridge@Colorado.edu> svn path=/trunk/; revision=27503
* noop if we're disabled, and do some lifecycle stuff now, callNot Zed2004-10-071-5/+23
| | | | | | | | | | 2004-10-07 Not Zed <NotZed@Ximian.com> * e-plugin.c (epl_invoke): noop if we're disabled, and do some lifecycle stuff now, call e_plugin_lib_enable on the module if it exists. svn path=/trunk/; revision=27494
* show the toplevel notebook if we had to create one, always.Not Zed2004-10-071-67/+208
| | | | | | | | | | | | | | | | | | 2004-10-07 Not Zed <NotZed@Ximian.com> * e-config.c (ec_rebuild): show the toplevel notebook if we had to create one, always. * e-menu.c (e_menu_add_items): initialise node->menu properly. * e-plugin.c (ep_load): read/initialise a unique id for all plugins and track them in a hashtable. (ep_construct): refactor so we have more control over what happens. if the hook handling class isn't registered yet, just note it and keep going. (e_plugin_hook_new): remove this, its handled internally by above. svn path=/trunk/; revision=27490
* Merged notzed-eplugin-2-branch to head.Michael Zucci2004-09-201-0/+850
svn path=/trunk/; revision=27300