aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-12-17 03:06:27 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-12-17 03:06:27 +0800
commitc5244efdf6d65718c1f5dca6840e567bb84f41fa (patch)
treeca091540152900f93f314184b877da80a6db10fa
parentba886a4a8d976a58cd49ec4371198fe89cdea686 (diff)
downloadgsoc2013-evolution-c5244efdf6d65718c1f5dca6840e567bb84f41fa.tar.gz
gsoc2013-evolution-c5244efdf6d65718c1f5dca6840e567bb84f41fa.tar.zst
gsoc2013-evolution-c5244efdf6d65718c1f5dca6840e567bb84f41fa.zip
main.c: Use g_type_ensure() to register plugin hook types.
Make sure EImportHook and EPluginUIHook types are registered at startup.
-rw-r--r--shell/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/main.c b/shell/main.c
index 4540f51984..302d1a1752 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -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. */