Try to fix #3132 by making sure every file chooser dialog is given an appropriate parent window.
This commit is contained in:
@@ -490,4 +490,9 @@ inline void setActiveTextOrIndex (Gtk::ComboBoxText& comboBox, const Glib::ustri
|
||||
comboBox.set_active (index);
|
||||
}
|
||||
|
||||
inline Gtk::Window& getToplevelWindow (Gtk::Widget* widget)
|
||||
{
|
||||
return *static_cast<Gtk::Window*> (widget->get_toplevel ());
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user