Commit 9ba3a3d3 authored by Morten Welinder's avatar Morten Welinder

Move plugin init code

parent 63f5c070
...@@ -976,6 +976,22 @@ GSF_CLASS_FULL (GnmPluginLoaderModule, gnm_plugin_loader_module, ...@@ -976,6 +976,22 @@ GSF_CLASS_FULL (GnmPluginLoaderModule, gnm_plugin_loader_module,
/****************************************************************************/ /****************************************************************************/
/**
* gnm_plugins_service_init: (skip)
*/
void
gnm_plugins_service_init (void)
{
go_plugin_service_define ("function_group",
&gnm_plugin_service_function_group_get_type);
go_plugin_service_define ("ui",
&gnm_plugin_service_ui_get_type);
go_plugin_service_define ("solver",
&gnm_plugin_service_solver_get_type);
go_plugin_loader_module_register_version ("gnumeric", GNM_VERSION_FULL);
}
void void
gnm_plugins_init (GOCmdContext *context) gnm_plugins_init (GOCmdContext *context)
{ {
......
...@@ -67,6 +67,7 @@ G_MODULE_EXPORT GOPluginModuleHeader const go_plugin_header = \ ...@@ -67,6 +67,7 @@ G_MODULE_EXPORT GOPluginModuleHeader const go_plugin_header = \
/**************************************************************************/ /**************************************************************************/
void gnm_plugins_service_init (void);
void gnm_plugins_init (GOCmdContext *c); void gnm_plugins_init (GOCmdContext *c);
G_END_DECLS G_END_DECLS
......
...@@ -295,13 +295,8 @@ gnm_init (void) ...@@ -295,13 +295,8 @@ gnm_init (void)
gtk_icon_theme_add_resource_path (gtk_icon_theme_get_default (), gtk_icon_theme_add_resource_path (gtk_icon_theme_get_default (),
"/org/gnumeric/gnumeric/icons"); "/org/gnumeric/gnumeric/icons");
} }
go_plugin_service_define ("function_group",
&gnm_plugin_service_function_group_get_type); gnm_plugins_service_init ();
go_plugin_service_define ("ui",
&gnm_plugin_service_ui_get_type);
go_plugin_service_define ("solver",
&gnm_plugin_service_solver_get_type);
go_plugin_loader_module_register_version ("gnumeric", GNM_VERSION_FULL);
g_object_new (GNM_APP_TYPE, NULL); g_object_new (GNM_APP_TYPE, NULL);
mathfunc_init (); mathfunc_init ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment