13
0

allow to set parent for modal dialog

This commit is contained in:
Robin Gareus 2015-12-29 13:31:24 +01:00
parent b8bb3eae47
commit 2d871435ca
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ namespace Gtkmm2ext {
class LIBGTKMM2EXT_API PathsDialog : public Gtk::Dialog class LIBGTKMM2EXT_API PathsDialog : public Gtk::Dialog
{ {
public: public:
PathsDialog (std::string, std::string current_paths = "", std::string default_paths = ""); PathsDialog (Gtk::Window& parent, std::string, std::string current_paths = "", std::string default_paths = "");
~PathsDialog (); ~PathsDialog ();
std::string get_serialized_paths (); std::string get_serialized_paths ();

View File

@ -26,8 +26,8 @@ using namespace Gtk;
using namespace std; using namespace std;
using namespace Gtkmm2ext; using namespace Gtkmm2ext;
PathsDialog::PathsDialog (std::string title, std::string current_paths, std::string default_paths) PathsDialog::PathsDialog (Gtk::Window& parent, std::string title, std::string current_paths, std::string default_paths)
: Dialog (title, true) : Dialog (title, parent, true)
, paths_list_view(1, false, Gtk::SELECTION_SINGLE) , paths_list_view(1, false, Gtk::SELECTION_SINGLE)
, add_path_button(_("Add")) , add_path_button(_("Add"))
, remove_path_button(_("Delete")) , remove_path_button(_("Delete"))