gimp/plug-ins/file-faxg3
Jehan 27dea4f7f7 plug-ins: various g_file_get_path() replaced by g_file_peek_path().
As explained in previous commits, the _peek_ call is advantageous
because:
- It is less bug-prone as we don't have to handle freeing the string. In
  all the cases I changed, I even spotted at least 2 cases where we were
  leaking a string (in file-mng, `temp_file_name` is never freed; and we
  were also leaking in an error case of gfig).
- As a consequence of the previous point: simpler code with less lines.
- In local file cases, the _peek_ variant does not even need to allocate
  an additional string.
- In other case, if we query several times the path, it is allocated
  once and cached so it stays efficient.
- When possible, working on the GFile rather than on a path string may
  be more robust. For instance I changed one g_unlink() into a
  g_file_delete(). Actually most reading/writing should be done with the
  GIO API when possible, but I didn't want to change too much code
  logics on this commit.
2021-10-01 18:47:30 +02:00
..
.gitignore Adding Microsoft Windows executables to the .gitignore files 2009-06-19 00:14:17 +02:00
Makefile.am plug-ins: port file-faxg3 to GimpPlugIn and libgimp objects 2019-08-24 18:08:31 +02:00
faxg3.c plug-ins: various g_file_get_path() replaced by g_file_peek_path(). 2021-10-01 18:47:30 +02:00
g3.c plug-ins/bmp/* plug-ins/faxg3/* plug-ins/fits/* plug-ins/fli/* 2008-08-11 10:06:13 +00:00
g3.h plug-ins/bmp/* plug-ins/faxg3/* plug-ins/fits/* plug-ins/fli/* 2008-08-11 10:06:13 +00:00
meson.build meson: Use libgimp(ui)_dep in plug-ins meson files 2020-05-11 07:01:37 +02:00