filechooser: Do not look up parents of directories
authorBarnabás Pőcze <pobrn@protonmail.com>
Wed, 8 Mar 2023 19:20:35 +0000 (20:20 +0100)
committerBarnabás Pőcze <pobrn@protonmail.com>
Wed, 8 Mar 2023 19:46:17 +0000 (20:46 +0100)
commit111e8d2808ac99dedb9942386011b9f14d7f3ab5
tree2e0edab995f5268e6e34622b1a5acba35d4bf950
parent9b0b3029a6b90834aa96ca3ad2123fd9dd9a64f5
filechooser: Do not look up parents of directories

If the `GtkRecentInfo` represents a directory, simply use it, and
do not try to find its parent in `_gtk_file_chooser_extract_recent_folders()`.

For example, there is an entry in my recently-used database
from the Amberol music player about the folder I have opened
with it, but the folder is not listed on the "Recent" tab of
the file chooser widget, only its parent. After this change,
the directory itself is shown.
gtk/gtkfilechooserwidget.c