Try to fix #3132 by making sure every file chooser dialog is given an appropriate parent window.

This commit is contained in:
Adam Reichold
2016-02-06 14:59:02 +01:00
parent f6cb2579d0
commit 4b9bc5be88
8 changed files with 15 additions and 10 deletions

View File

@@ -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