Check for attributes being available before querying them
authorEmmanuele Bassi <ebassi@gnome.org>
Sat, 4 Mar 2023 00:02:52 +0000 (00:02 +0000)
committerEmmanuele Bassi <ebassi@gnome.org>
Sat, 4 Mar 2023 15:28:53 +0000 (15:28 +0000)
commit891b6dc4a916a76704e9f3f7248be02f2bbcb294
treeb62a6781642e18ad7ecefe2e249ca3f930cef7a0
parentc6ff7400a8802d28ef6c45b7abcf517f95f0c387
Check for attributes being available before querying them

GLib 2.75 started checking if a GFileInfo was created with the attribute
we're querying, instead of failing silently and leaving us in an
inconsistent state.

Turns out that GtkFileChooserWidget, GtkFileSystemModel, and GtkPathBar
trip the newly introduced check.
gtk/gtkfilechooserwidget.c
gtk/gtkfilesystemmodel.c
gtk/gtkpathbar.c