GNOME Bugzilla – Bug 785306
FileChooserNativeQuartz: two fixes
Last modified: 2017-08-24 11:25:52 UTC
I am proposing two commits that improve upon my work in https://bugzilla.gnome.org/show_bug.cgi?id=784723. First commit in patch restores support on Mountain Lion and Mavericks. I was using Objective-C generics which were introduced only in Xcode 7. I recommend that this patch is reverted when the minimum supported version of macOS is set to Yosemite (10.10) Second commit improves how the file filter box is shown. Instead of using conditional compilation, this patch uses a run time check to see if the required method is available.
Created attachment 356223 [details] [review] Two fixes for the native quartz file dialog
Review of attachment 356223 [details] [review]: looks ok to me
There's one more thing that bothers me about the macOS file chooser: after closing, the parent's focus is not restored. This will require some investigation, but in the meantime the two patches here can be added to both gtk-3-22 and master.
Created attachment 356749 [details] [review] Three fixes for GtkNativeFileChooserQuartz I added a patch for restoring focus after closing the dialog. This was the last thing I wanted to fix.
Can this one please be merged in? Thanks
Can someone please merge these commits in? One of them is necessary to ensure compilation on Mavericks and Mountain Lion... Thanks
Thanks!