gimp/plug-ins/script-fu
Jehan 231ca0c505 Issue #9994: do not call g_file_info_get_is_hidden() (and others) directly.
This is not the main reason for the specific output in #9994. These ones are
more probably because of similar usage in GTK (which updated its own calls to
g_file_info_get_is_hidden|backup() in version 3.24.38). But we should likely
also update the various calls we have to use the generic
g_file_info_get_attribute_*() variants.

To be fair, it is unclear to me when we can be sure that an attribute is set.
For instance, when we call g_file_enumerate_children() or g_file_query_info()
with specific attributes, docs say that it is still possible for these
attributes to not be set. So I assume it means we should never use direct
accessor functions.

The only exception is that I didn't remove usage of g_file_info_get_name(),
since its docs says:

> * Gets a display name for a file. This is guaranteed to always be set.

Even though it also says just after:

> * It is an error to call this if the #GFileInfo does not contain
> * %G_FILE_ATTRIBUTE_STANDARD_DISPLAY_NAME.

Which is very contradictory. But assuming that this error warning was
over-zealous documentation, I kept the direct accessors since they are supposed
to be slightly more optimized (still according to in-code documentation) so
let's priorize them when we know they are set for sure.
2023-09-19 15:34:48 +02:00
..
console plug-ins: fix build warnings. 2023-06-25 23:43:40 +02:00
interpreter Remove autotools 2023-05-27 00:03:52 +02:00
libscriptfu Issue #9994: do not call g_file_info_get_is_hidden() (and others) directly. 2023-09-19 15:34:48 +02:00
scripts scripts: Add Table of Contents to User Manual submenu 2023-08-21 02:10:45 +00:00
server Remove autotools 2023-05-27 00:03:52 +02:00
test ScriptFu: change binding of resource from string to int 2023-09-15 11:02:46 +00:00
meson.build ScriptFu: #9755 Add test framework and tests for TS and PDB 2023-08-25 21:39:29 +00:00
script-fu-eval.c ScriptFu: build shared libgimp-scriptfu-3.0.so separate from executable script-fu 2022-06-11 08:58:30 -04:00
script-fu-eval.h plug-ins: port plug-in-script-fu-eval to GimpBatchProcedure. 2022-04-16 18:50:29 +02:00
script-fu-text-console.c ScriptFu: build shared libgimp-scriptfu-3.0.so separate from executable script-fu 2022-06-11 08:58:30 -04:00
script-fu-text-console.h plug-ins: port script-fu to GimpPlugIn 2019-08-12 20:49:08 +02:00
script-fu.c SF Console history persist as GStrv setting. 2023-06-25 18:28:03 +00:00