[mutter] context: Init introspection paths during setup



commit ecc40e7b239224f8f8953ac5103a5e1990a115a8
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Tue Mar 2 12:00:13 2021 +0100

    context: Init introspection paths during setup
    
    This is currently done during meta_init().
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>

 src/core/meta-context.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/core/meta-context.c b/src/core/meta-context.c
index 80e6e06764..fda7e46352 100644
--- a/src/core/meta-context.c
+++ b/src/core/meta-context.c
@@ -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);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]