allow to set parent for modal dialog
This commit is contained in:
parent
b8bb3eae47
commit
2d871435ca
@ -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 ();
|
||||
|
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user