From 2d871435ca617fbf106916f049766dec33a23857 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Tue, 29 Dec 2015 13:31:24 +0100 Subject: [PATCH] allow to set parent for modal dialog --- libs/gtkmm2ext/gtkmm2ext/paths_dialog.h | 2 +- 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"))