Closed pluton8 closed 7 years ago
You have also based this on the master branch, but in the 1.4.2 branch, I have made some changes to check if there is any other window open and raise that one, if it's the case. If you want this implemented, you should rewrite it in the 1.4.2 branch, and check specifically if the preferences dialog is open, before closing it.
I have a trouble checking if the Manage History dialog is the currently active window (not hidden under other windows) in order to close it. I've tried using gtk_window_is_active(), gtk_window_has_toplevel_focus(), gtk_widget_is_focus(), gtk_widget_has_focus(), even gtk_widget_get_visible() methods. None of them worked out. shantzu, could you please give me a hint how to perform such a test?
Hello,
and sorry for the very late answer. Unfortunately I don't know of an easy way to do this.
shantzu, please consider my tiny patch. I think it's more convenient to be able to open and close the "Manage History" dialog with the same hotkey.