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
{
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 ();

View File

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