[libpeas] Bind plugin module symbols globally
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] Bind plugin module symbols globally
- Date: Fri, 23 Sep 2011 08:52:51 +0000 (UTC)
commit 4b676359b6450c5c00941d94f3db5b371fb2784c
Author: Garrett Regier <garrettregier gmail com>
Date: Thu Sep 22 05:53:26 2011 -0700
Bind plugin module symbols globally
Binding locally broke the Python plugin loader.
libpeas/peas-object-module.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/libpeas/peas-object-module.c b/libpeas/peas-object-module.c
index bfe9c9c..a294b9d 100644
--- a/libpeas/peas-object-module.c
+++ b/libpeas/peas-object-module.c
@@ -89,7 +89,10 @@ peas_object_module_load (GTypeModule *gmodule)
if (G_MODULE_SUFFIX[0] != '\0' && g_str_has_suffix (path, "." G_MODULE_SUFFIX))
path[strlen (path) - strlen (G_MODULE_SUFFIX) - 1] = '\0';
- module->priv->library = g_module_open (path, G_MODULE_BIND_LOCAL);
+ /* Bind symbols globally and immediately,
+ * binding locally broke the Python plugin loader.
+ */
+ module->priv->library = g_module_open (path, 0);
g_free (path);
if (module->priv->library == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]