context: Init introspection paths during setup
This is currently done during meta_init(). Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>
This commit is contained in:
parent
a32b005848
commit
ecc40e7b23
@ -154,6 +154,14 @@ compositor_type_to_description (MetaCompositorType compositor_type)
|
||||
g_assert_not_reached ();
|
||||
}
|
||||
|
||||
static void
|
||||
init_introspection (MetaContext *context)
|
||||
{
|
||||
#ifdef HAVE_INTROSPECTION
|
||||
g_irepository_prepend_search_path (MUTTER_PKGLIBDIR);
|
||||
#endif
|
||||
}
|
||||
|
||||
static gboolean
|
||||
meta_context_real_setup (MetaContext *context,
|
||||
GError **error)
|
||||
@ -186,6 +194,8 @@ meta_context_setup (MetaContext *context,
|
||||
|
||||
meta_plugin_manager_load (priv->plugin_name);
|
||||
|
||||
init_introspection (context);
|
||||
|
||||
return META_CONTEXT_GET_CLASS (context)->setup (context, error);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user