libgimpwidgets: Try harder to set parent window
In case someone passes a GtkWidget
rather than a GtkWindow
as a
parent to a GimpDialog
, we still have another way of trying to get its
parent window, using gtk_window_get_toplevel()
. If we still get a
window from that, it allows us to still specify a reasonable
"transient-for" value for our newly-made GimpDialog
.
Edited by Niels De Graef