diff options
author | Robin Gareus <robin@gareus.org> | 2015-12-29 13:31:24 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2015-12-29 13:31:24 +0100 |
commit | 2d871435ca617fbf106916f049766dec33a23857 (patch) | |
tree | 9bc155661bdd8cb862e8b09f498fa15d9f291cf2 /libs/gtkmm2ext | |
parent | b8bb3eae4767a93012c08410513eaa9a8e02f071 (diff) |
allow to set parent for modal dialog
Diffstat (limited to 'libs/gtkmm2ext')
-rw-r--r-- | libs/gtkmm2ext/gtkmm2ext/paths_dialog.h | 2 | ||||
-rw-r--r-- | libs/gtkmm2ext/paths_dialog.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/gtkmm2ext/gtkmm2ext/paths_dialog.h b/libs/gtkmm2ext/gtkmm2ext/paths_dialog.h index 4f18511c58..120d037a27 100644 --- a/libs/gtkmm2ext/gtkmm2ext/paths_dialog.h +++ b/libs/gtkmm2ext/gtkmm2ext/paths_dialog.h @@ -30,7 +30,7 @@ namespace Gtkmm2ext { class LIBGTKMM2EXT_API PathsDialog : public Gtk::Dialog { 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 (); std::string get_serialized_paths (); diff --git a/libs/gtkmm2ext/paths_dialog.cc b/libs/gtkmm2ext/paths_dialog.cc index 1f3a3b5de6..f169a5a29d 100644 --- a/libs/gtkmm2ext/paths_dialog.cc +++ b/libs/gtkmm2ext/paths_dialog.cc @@ -26,8 +26,8 @@ using namespace Gtk; using namespace std; using namespace Gtkmm2ext; -PathsDialog::PathsDialog (std::string title, std::string current_paths, std::string default_paths) - : Dialog (title, true) +PathsDialog::PathsDialog (Gtk::Window& parent, std::string title, std::string current_paths, std::string default_paths) + : Dialog (title, parent, true) , paths_list_view(1, false, Gtk::SELECTION_SINGLE) , add_path_button(_("Add")) , remove_path_button(_("Delete")) |