[libpeas] Fix setting "peas-extension-type" in the lua5.1 plugin	loader
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [libpeas] Fix setting "peas-extension-type" in the lua5.1 plugin	loader
- Date: Tue, 18 Nov 2014 18:38:27 +0000 (UTC)
commit fbfea67c9ae08b570e5aa5bcd644d70937f50f20
Author: Garrett Regier <garrett regier riftio com>
Date:   Sat Nov 8 11:18:33 2014 -0800
    Fix setting "peas-extension-type" in the lua5.1 plugin loader
    
    This fix was already made to the other plugins loaders.
 loaders/lua5.1/peas-plugin-loader-lua.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/loaders/lua5.1/peas-plugin-loader-lua.c b/loaders/lua5.1/peas-plugin-loader-lua.c
index 66e0838..879e82a 100644
--- a/loaders/lua5.1/peas-plugin-loader-lua.c
+++ b/loaders/lua5.1/peas-plugin-loader-lua.c
@@ -228,12 +228,11 @@ peas_plugin_loader_lua_create_extension (PeasPluginLoader *loader,
   if (object == NULL)
     return NULL;
 
-  /* As we do not instantiate a PeasExtensionWrapper, we have to remember
-   * somehow which interface we are instantiating, to make it possible to use
-   * the deprecated peas_extension_get_extension_type() method.
+  /* We have to remember which interface we are instantiating
+   * for the deprecated peas_extension_get_extension_type().
    */
   g_object_set_data (object, "peas-extension-type",
-                     GUINT_TO_POINTER (exten_type));
+                     GSIZE_TO_POINTER (exten_type));
 
   luaL_checkstack (L, 3, "");
 
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]