Skip to content

[filechooserdialog] Display search button in non-CSD dialog

Alx Sa requested to merge cmyk.student/gtk:search-icon-non-csd into gtk-3-24

On gimp#8919, @Blackgrowl noted that GIMP 2.99 no longer has a search button when opening files. This is because in GTK3, the search button is only created if the dialogue has use-header-bar enabled (which it isn't always on Windows).

This patch attempts to resolve the issue by conditionally adding the search icon to the GtkPathbar row if use-header-bar is not enabled. As a result, it also keeps the bar visible when "Recent" is selected in GtkPlacesSidebar.

The proposed layout for non-CSD dialogues:

magnifying-glass

Feedback appreciated!

Edited by Alx Sa

Merge request reports