GtkNativeDialog: non-modal and gtk_native_dialog_show(), doesn't present the window
Tested with GTK 3 (3.24.20).
There is a bug with a non-modal GtkFileChooserNative (GtkNativeDialog) when using only keyboard shortcuts (so this can be considered an accessibility issue).
Steps to reproduce the problem:
- From the main window of the application, type
Ctrl+O
to open a non-modal GtkFileChooserNative. - With keyboard shortcuts, switch to the main window.
- Type again
Ctrl+O
, which callsgtk_native_dialog_show()
on the existing GtkFileChooserNative.
---> The focus is still on the main window, from the keyboard only it is impossible to regain the focus on the GtkFileChooserNative, one needs to use the mouse and click on the dialog.
So, basically, gtk_native_dialog_show()
lacks a call to gtk_window_present()
or similar for a native dialog.
The bug was present in gedit: gedit#239 (closed)