From 8a826a675862d56b6d01c8467282bde9171f8cf8 Mon Sep 17 00:00:00 2001 From: Alexander van der Meij Date: Mon, 29 Feb 2016 15:16:21 +0100 Subject: fix loading multiple python extensions (regression since 1.9.3) --- libcaja-private/caja-module.c | 5 +++-- 1 file 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 * -- cgit v1.2.1