diff options
author | monsta <[email protected]> | 2016-04-05 11:44:34 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-04-05 11:44:34 +0300 |
commit | c0aaee81a13f7e9aec7d5c63c6f27d28201a1580 (patch) | |
tree | 6187b82c80750fb4c9bab9c930b0089367718e06 /src | |
parent | 6925f41da64b5aebee5d452a40c541303dd252bf (diff) | |
download | python-caja-c0aaee81a13f7e9aec7d5c63c6f27d28201a1580.tar.bz2 python-caja-c0aaee81a13f7e9aec7d5c63c6f27d28201a1580.tar.xz |
fix indent a bit
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-python.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/caja-python.c b/src/caja-python.c index 12816bd..10d23b5 100644 --- a/src/caja-python.c +++ b/src/caja-python.c @@ -64,16 +64,16 @@ caja_python_load_file(GTypeModule *type_module, PyObject *module; GType gtype; Py_ssize_t pos = 0; - + debug_enter_args("filename=%s", filename); - + main_module = PyImport_AddModule("__main__"); if (main_module == NULL) { g_warning("Could not get __main__."); return; } - + main_locals = PyModule_GetDict(main_module); module = PyImport_ImportModuleEx((char *) filename, main_locals, main_locals, NULL); if (!module) @@ -81,9 +81,9 @@ caja_python_load_file(GTypeModule *type_module, PyErr_Print(); return; } - + locals = PyModule_GetDict(module); - + while (PyDict_Next(locals, &pos, &key, &value)) { if (!PyType_Check(value)) @@ -97,11 +97,11 @@ 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); } } - + debug("Loaded python modules"); } @@ -184,7 +184,7 @@ caja_python_init_python (void) PyErr_Print(); return FALSE; } - + debug("Sanitize the python search path"); PyRun_SimpleString("import sys; sys.path = filter(None, sys.path)"); if (PyErr_Occurred()) @@ -200,7 +200,7 @@ caja_python_init_python (void) g_warning("pygobject initialization failed"); return FALSE; } - + /* import caja */ g_setenv("INSIDE_CAJA_PYTHON", "", FALSE); debug("import caja"); @@ -251,7 +251,7 @@ caja_module_initialize(GTypeModule *module) caja_python_ndebug_keys); env_string = NULL; } - + debug_enter(); all_types = g_array_new(FALSE, FALSE, sizeof(GType)); @@ -277,7 +277,7 @@ caja_module_shutdown(void) g_list_free (all_pyfiles); } -void +void caja_module_list_types(const GType **types, int *num_types) { @@ -287,7 +287,7 @@ caja_module_list_types(const GType **types, *num_types = all_types->len; } -void +void caja_module_list_pyfiles(GList **pyfiles) { debug_enter(); |