summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authorAlexander van der Meij <[email protected]>2016-02-29 15:16:21 +0100
committerAlexander van der Meij <[email protected]>2016-02-29 15:16:21 +0100
commit8a826a675862d56b6d01c8467282bde9171f8cf8 (patch)
tree641037963dd560483168d322a1aa080d1c970d8a /libcaja-private
parentbbdaab78b0f28b41543291557b5d3b545300b7d0 (diff)
downloadcaja-8a826a675862d56b6d01c8467282bde9171f8cf8.tar.bz2
caja-8a826a675862d56b6d01c8467282bde9171f8cf8.tar.xz
fix loading multiple python extensions (regression since 1.9.3)
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-module.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/libcaja-private/caja-module.c b/libcaja-private/caja-module.c
index 8dc00f6e..8c08741c 100644
--- a/libcaja-private/caja-module.c
+++ b/libcaja-private/caja-module.c
@@ -154,11 +154,13 @@ static void
add_module_objects (CajaModule *module)
{
GObject *object = NULL;
+ gchar *filename = NULL;
const GType *types = NULL;
int num_types = 0;
int i;
module->list_types (&types, &num_types);
+ filename = g_path_get_basename (module->path);
for (i = 0; i < num_types; i++)
{
@@ -167,9 +169,8 @@ add_module_objects (CajaModule *module)
break;
}
object = caja_module_add_type (types[i]);
+ caja_extension_register (filename, object);
}
- gchar *filename = g_path_get_basename (module->path);
- caja_extension_register (filename, object);
}
static CajaModule *