diff options
author | Alexander van der Meij <[email protected]> | 2016-03-07 21:10:55 +0100 |
---|---|---|
committer | Alexander van der Meij <[email protected]> | 2016-03-07 21:10:55 +0100 |
commit | 6925f41da64b5aebee5d452a40c541303dd252bf (patch) | |
tree | 4051a3df28080a68c2498409d5669f0bb5958883 /src | |
parent | b94df17da80245be979c5ee16dccf6e35b03c641 (diff) | |
download | python-caja-6925f41da64b5aebee5d452a40c541303dd252bf.tar.bz2 python-caja-6925f41da64b5aebee5d452a40c541303dd252bf.tar.xz |
expose child python filenames to caja
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-python.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/caja-python.c b/src/caja-python.c index a6a7478..12816bd 100644 --- a/src/caja-python.c +++ b/src/caja-python.c @@ -40,6 +40,7 @@ CajaPythonDebug caja_python_debug; static gboolean caja_python_init_python(void); static GArray *all_types = NULL; +static GList *all_pyfiles = NULL; static inline gboolean @@ -96,6 +97,8 @@ caja_python_load_file(GTypeModule *type_module, { gtype = caja_python_object_get_type(type_module, value); g_array_append_val(all_types, gtype); + + all_pyfiles = g_list_append(all_pyfiles, (gchar*)filename); } } @@ -271,6 +274,7 @@ caja_module_shutdown(void) Py_Finalize(); g_array_free(all_types, TRUE); + g_list_free (all_pyfiles); } void @@ -282,3 +286,11 @@ caja_module_list_types(const GType **types, *types = (GType*)all_types->data; *num_types = all_types->len; } + +void +caja_module_list_pyfiles(GList **pyfiles) +{ + debug_enter(); + + *pyfiles = all_pyfiles; +} |