From 325d153bd4c8bb010946b81c4c38ac6fe04ae19e Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Sun, 10 Jan 2016 13:09:56 +0100 Subject: [PATCH] Use the Gtk::Dialog constructor with an explicit parent window for the preferences dialog. --- rtgui/preferences.cc | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/rtgui/preferences.cc b/rtgui/preferences.cc index 84625bdcf..124cd37a5 100644 --- a/rtgui/preferences.cc +++ b/rtgui/preferences.cc @@ -36,13 +36,13 @@ extern Glib::ustring argv0; extern Glib::RefPtr cssForced; Glib::RefPtr css; -Preferences::Preferences (RTWindow *rtwindow) : rprofiles(NULL), iprofiles(NULL), parent(rtwindow) +Preferences::Preferences (RTWindow *rtwindow) + : Gtk::Dialog (M("MAIN_BUTTON_PREFERENCES"), *rtwindow, true) + , rprofiles (nullptr) + , iprofiles (nullptr) + , parent (rtwindow) + , splash (nullptr) { - - splash = NULL; - - set_title (M("MAIN_BUTTON_PREFERENCES")); - moptions.copyFrom (&options); /* @@ -96,7 +96,6 @@ Preferences::Preferences (RTWindow *rtwindow) : rprofiles(NULL), iprofiles(NULL fillPreferences (); show_all_children (); - set_modal (true); }