mirror of
https://github.com/brl/mutter.git
synced 2025-03-28 14:13:47 +00:00
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 ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
init_introspection (MetaContext *context)
|
||||||
|
{
|
||||||
|
#ifdef HAVE_INTROSPECTION
|
||||||
|
g_irepository_prepend_search_path (MUTTER_PKGLIBDIR);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
meta_context_real_setup (MetaContext *context,
|
meta_context_real_setup (MetaContext *context,
|
||||||
GError **error)
|
GError **error)
|
||||||
@ -186,6 +194,8 @@ meta_context_setup (MetaContext *context,
|
|||||||
|
|
||||||
meta_plugin_manager_load (priv->plugin_name);
|
meta_plugin_manager_load (priv->plugin_name);
|
||||||
|
|
||||||
|
init_introspection (context);
|
||||||
|
|
||||||
return META_CONTEXT_GET_CLASS (context)->setup (context, error);
|
return META_CONTEXT_GET_CLASS (context)->setup (context, error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user