Native filechooser button Select button is sensitive without selections
When selecting a folder and then pressing Ctrl-l one can type the name or location of a file, this makes the Select button to become sensitive, allowing the user to send a response
signal of type accept
while there is no file selected. In this case gtk_file_chooser_get_file()
just returns null
.
I might be wrong but I have found that ignoring this null check is a very common pattern in GTK apps.