summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
12 dayscaja-python-object.c: Remove the extra reference on the PyObjectHEADmasterMichael Webster1-1/+3
file wrappers when adding them to the python list. PyObjects start with a refcount of 1. Adding them to a PyList adds a second - which gets removes during the list's destruction. The additional ref was keeping its associated CajaFile from ever being finalized. Steps to reproduce problem: 1) Install python-caja and some python MenuProvider extension. 2) Create a folder with a couple of image files inside. Be sure to allow thumbs to generate. 3) Enter the folder, select one or more files (so menus are generated). De-select and leave the folder (but do not close caja). If you were to watch for the files' finalize to run, you'd notice it does not. 4) touch or otherwise modify one of the image files from a terminal 5) Re-enter the folder in caja. 6) See that loading runs forever, modified file(s) never display. Note: even if you only modify one file, it could cause all of the files to fail to load, depending on their order during enumeration. When no more views are displaying a file, that file should be finalized. When it's not it ends up in an undefined state, as it has no monitors flag it as needing to be updated
2023-11-18Python 3.13 removes PySys_SetArgv(): set sys.argv in Python language.Patrick Monnerat1-11/+4
2021-12-11Use a blank line at mostrbuj3-7/+0
2021-10-26caja-python: do not discard const modifier in PyImport_ImportModuleExrbuj1-1/+1
PyObject *PyImport_ImportModuleEx(const char *name, PyObject *globals, PyObject *locals, PyObject *fromlist)
2021-10-26caja-python: missing g_strduprbuj1-2/+2
2020-12-06caja-python: remove warnings about conversionrbuj1-3/+3
2020-06-17add git.mk to generate .gitignoretamplan1-0/+2
2020-04-25caja-python: Fix memory leak reported by scan-buildrbuj1-0/+2
2020-04-10build: Use WARN_CFLAGS variablerbuj1-4/+6
2020-01-29Get rid of commonsPatrick Monnerat2-11/+19
See https://gcc.gnu.org/gcc-10/porting_to.html#common
2019-12-25drop Python 2 support (#50)monsta2-37/+9
it's going EOL in 2020
2019-07-06Remove trailing whitespacesLaurent Napias4-51/+51
2019-03-31Make Caja.OperationHandle usable.Patrick Monnerat2-2/+70
The Caja.OperationHandle.handle property is added: this gives access to the effective handle taking the form of a non-zero signed integer that can be stored in a void pointer. Trying to set this property with an invalid value raises an exception. Upon update_file_info_full call, the new Caja.OperationHandle is preset with a "unique" non-null value generated from an atomic counter. When the python method returns, the handle value is transmitted to Caja whatever it is: this fixes the problem of Caja expecting a non-null handle when CAJA_OPERATION_IN_PROGRESS is returned. Ref: https://github.com/mate-desktop/python-caja/issues/36
2019-01-30Fix Python 2 INT_ASLONG function.Patrick Monnerat1-1/+1
Ref: https://github.com/mate-desktop/python-caja/pull/34#issuecomment-457189545
2019-01-30Include Python 3 ABI flags in shared library name.Patrick Monnerat2-2/+3
Python 3 appends the ABI flags to the version in the shared library file name: since this library is loaded as a gmodule, the correct file name must be provided.
2019-01-30Make Python statements compatible with version 2 and 3.Patrick Monnerat1-1/+1
2019-01-30Implement Python 3 C API compatibility using conditional and macros.Patrick Monnerat2-7/+31
The updated sources are still compatible with Python 2.
2019-01-30Fail to build if some referenced symbol cannot be resolved at link time.Patrick Monnerat1-1/+1
This also requires to link with the gmodule library.
2017-07-26use standard python exception messagemonsta1-1/+1
2017-07-21Added gi.require_version()leigh123linux1-1/+14
taken from: https://github.com/linuxmint/nemo-extensions/commit/67cc631
2016-10-18drop ancient check for Python 2.5, not needed these daysmonsta1-6/+0
2016-04-05fix indent a bitmonsta1-12/+12
2016-03-07expose child python filenames to cajaAlexander van der Meij1-0/+12
2014-07-11Use pkg-config for python detection and variablesinfirit1-2/+3
2014-01-08Cleanup AM_CPPFLAGSinfirit1-12/+15
2014-01-08Revert "Do not dlopen libpython"infirit2-1/+9
This reverts commit d63756bd11b097f11f115d5477110893b7ee16a2. Causes problems like the following issue on github: https://github.com/mate-desktop/python-caja/issues/5
2013-09-06fix make file for automake-1.13Wolfgang Ulbrich1-1/+1
2013-01-22Do not dlopen libpythonYaakov Selkowitz2-9/+1
As libcaja-python is linked with -lpythonX.Y on all platforms, there is no need to dlopen libpython in order to load it.
2013-01-22Drop support for old script locationYaakov Selkowitz1-9/+0
Now is a good time as any, with the extension API changing to g-i.
2013-01-22Convert to g-iYaakov Selkowitz3-179/+37
2013-01-22Remove static bindingsYaakov Selkowitz4-550/+0
2012-11-18fixed incorrect fsf addresses.Steve Zesch5-5/+5
2012-01-13switch to autogen.sh, updated files for MATEStefano Karapetsas1-643/+0
2012-01-13initial import from Mate-Extra repoStefano Karapetsas9-0/+2364