summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander van der Meij <[email protected]>2016-02-29 15:16:21 +0100
committermonsta <[email protected]>2016-03-14 14:05:48 +0300
commit2a949e219e8d43b475ac7fd7b17519b0467b9152 (patch)
treeb98b58ee591fd8d1cae961a9a3c0cfa41b888b94
parent15e4db0b1d29e8663ea9938e709078c70050dc4c (diff)
downloadcaja-2a949e219e8d43b475ac7fd7b17519b0467b9152.tar.bz2
caja-2a949e219e8d43b475ac7fd7b17519b0467b9152.tar.xz
fix loading multiple python extensions (regression since 1.9.3)
-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 0067f2d3..3ada8976 100644
--- a/libcaja-private/caja-module.c
+++ b/libcaja-private/caja-module.c
@@ -153,11 +153,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++)
{
@@ -166,9 +168,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 *