- Apr 18, 2024
-
-
Jan Tojnar authored
-
Jan Tojnar authored
-
Python 3.13 removes PySys_SetArgv(), set sys.argv in Python language. Picked from https://github.com/mate-desktop/python-caja/commit/dac54a63e1aa623df411a6b8f8d4062ba9cd273e
-
Jan Tojnar authored
-
- Jun 18, 2023
-
-
Jan Tojnar authored
-
- Oct 22, 2022
-
-
Jan Tojnar authored
GNOME 43 has been merged to master a while ago, let’s switch to unstable channel based off of it.
-
- Oct 06, 2022
-
-
Jan Tojnar authored
-
- Oct 05, 2022
-
-
Jan Tojnar authored
The build may fail with underlinking on some distros: src/nautilus-python.c:158: undefined reference to `g_module_open'
-
- Sep 17, 2022
-
-
Jan Tojnar authored
-
- Sep 06, 2022
-
-
Jan Tojnar authored
-
Jan Tojnar authored
-
Jan Tojnar authored
It will verify that the project still builds and upload the build docs to GitLab pages.
-
Jan Tojnar authored
Nix [1] is purely functional package manager allowing to easily install dependencies in a reproducible manner. A developer can run `nix-shell` in the project directory and they will be dropped into a shell with all the necessary build dependencies. The dependencies are pinned so that same version can be used on CI and developers’ machines. One can run `nix-shell --run 'niv update'` to update to latest version. [1]: https://nixos.org/
-
- Aug 16, 2022
-
-
Jan Tojnar authored
version is already defined in entities.docbook and builddate is not meaningful if we want to support reproducible builds without annoying tracking of the commit date.
-
Jan Tojnar authored
Fixes: #15
-
- Aug 15, 2022
-
-
Jan Tojnar authored
Do not mention Python 2 or ancient nautilus-python version, reduce redundancy, make data paths description more precise.
-
Jan Tojnar authored
That way, it will be easier to notice that it does not belong to PropertyPageProvider section.
-
Jan Tojnar authored
And rebuild them when that happens.
-
- Aug 12, 2022
-
-
Jan Tojnar authored
-
Jan Tojnar authored
-
Jan Tojnar authored
This replaces NautilusPropertyPageProvider from Nautilus-3.0.
-
Jan Tojnar authored
Mostly removed GTK-based API: nautilus!927
-
Jan Tojnar authored
-
Jan Tojnar authored
Formatted with Prettier.
-
Picked from https://github.com/linuxmint/nemo-extensions/commit/bd48a2da9012f81e0e3a1a09ca0069947a198de5 The `CONVERT_LIST` part is already merged as !8 The `Py_XDECREF(py_uri)` is not necessary since `N` arguments of `PyObject_CallMethod` do not increase reference count https://docs.python.org/3/c-api/arg.html#c.Py_BuildValue It would cause a crash and was reverted in https://github.com/linuxmint/nemo-extensions/commit/74b9e778cfa71daa619e16b3c4f945d2725d24e2.
-
Jan Tojnar authored
This should make it clearer what each function does, even though they are not checked. Also switched the tuples for proper lists since the API expects `GList`s.
-
Jan Tojnar authored
When overriding constructors, we need to call the parent constructor, otherwise GObject will not be properly initialized: >>> from importlib import import_module; ufia = import_module('examples.update-file-info-async') >>> ufia.UpdateFileInfoAsync() <update-file-info-async.UpdateFileInfoAsync object at 0x7f5fe326b5c0 (uninitialized at 0x(nil))> Furthermore, we can drop the constructors where we are not initializing any extra properties – then the constructor of the parent class (GObject will be called). We also need to ensure that GObject is the first parent class listed since otherwise, Python will try to call the constructor of the provider, which does not exist since it is an abstract class. We will keep it for TestExtension since it is the first example people reading the docs will see and hopefully that will reduce the amount of forgotten parent constructor calls. Noticed in https://github.com/linuxmint/nemo-extensions/commit/67a5d42489a...
-
Jan Tojnar authored
We install all other extensions from docs. Also correct the name.
-
PyObject_GetAttrString() returns new reference: https://docs.python.org/3/c-api/object.html#c.PyObject_GetAttrString
-
Jan Tojnar authored
It is no longer supported.
-
Jan Tojnar authored
-
- Aug 11, 2022
-
-
nautilus-python-object.c: Remove the extra reference on the PyObject 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 NautilusFile from ever being finalized. Steps to reproduce problem: 1) Install nautilus-python 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 Nautilus). 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 nautilus. 6) See that loading status 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.
-
Jan Tojnar authored
Previously, they were just empty. Inspired by https://github.com/linuxmint/nemo-extensions/commit/67a5d42489a1ae1715f620f281b62b8cc444d2d0
-
Jan Tojnar authored
-
Jan Tojnar authored
-
Jan Tojnar authored
This will make it easier to port to Meson.
-
Jan Tojnar authored
So that the style is consistent.
-
Jan Tojnar authored
It was not used for anything since d1484967.
-
Jan Tojnar authored
In Python 3 urllib was split into multiple libraries, we do not need to support the Python 2 variant any longer.
-