main.c: Use g_type_ensure() to register plugin hook types.

Make sure EImportHook and EPluginUIHook types are registered at startup.
This commit is contained in:
Matthew Barnes
2012-12-16 14:06:27 -05:00
parent ba886a4a8d
commit c5244efdf6

View File

@ -673,8 +673,8 @@ main (gint argc,
if (!disable_eplugin) {
/* Register built-in plugin hook types. */
es_event_hook_get_type ();
e_import_hook_get_type ();
e_plugin_ui_hook_get_type ();
g_type_ensure (E_TYPE_IMPORT_HOOK);
g_type_ensure (E_TYPE_PLUGIN_UI_HOOK);
/* All EPlugin and EPluginHook subclasses should be
* registered in GType now, so load plugins now. */