From: Carlos Lopez Date: Wed, 26 May 2010 15:14:52 +0000 (+0200) Subject: Keep the Target Param Dialog above its parent X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=439400886c6cfa8c6dbee7957320124e49b9aa13;p=synfig.git Keep the Target Param Dialog above its parent --- diff --git a/synfig-studio/src/gtkmm/dialog_targetparam.cpp b/synfig-studio/src/gtkmm/dialog_targetparam.cpp index 7884ca5..ac8540b 100644 --- a/synfig-studio/src/gtkmm/dialog_targetparam.cpp +++ b/synfig-studio/src/gtkmm/dialog_targetparam.cpp @@ -87,9 +87,9 @@ const char* allowed_video_codecs_description[] = /* === E N T R Y P O I N T ================================================= */ -Dialog_TargetParam::Dialog_TargetParam(synfig::TargetParam &tparam) +Dialog_TargetParam::Dialog_TargetParam(Gtk::Window &parent, synfig::TargetParam &tparam): + Gtk::Dialog(_("TargetParam Dialog"), parent, false, true) { - set_title(_("TargetParam Dialog")); set_tparam(tparam); // Custom Video Codec Entry Gtk::Label* custom_label(manage(new Gtk::Label(CUSTOM_VCODEC))); diff --git a/synfig-studio/src/gtkmm/dialog_targetparam.h b/synfig-studio/src/gtkmm/dialog_targetparam.h index f9a986c..7264456 100644 --- a/synfig-studio/src/gtkmm/dialog_targetparam.h +++ b/synfig-studio/src/gtkmm/dialog_targetparam.h @@ -55,7 +55,7 @@ class Dialog_TargetParam : public Gtk::Dialog void on_vcodec_change(); public: - Dialog_TargetParam(synfig::TargetParam &tparam); + Dialog_TargetParam(Gtk::Window &parent, synfig::TargetParam &tparam); ~Dialog_TargetParam(); synfig::TargetParam get_tparam() const { return tparam_; } diff --git a/synfig-studio/src/gtkmm/render.cpp b/synfig-studio/src/gtkmm/render.cpp index fa54450..5de4148 100644 --- a/synfig-studio/src/gtkmm/render.cpp +++ b/synfig-studio/src/gtkmm/render.cpp @@ -248,7 +248,7 @@ RenderSettings::on_choose_pressed() void RenderSettings::on_targetparam_pressed() { - Dialog_TargetParam *dialogtp = new Dialog_TargetParam(tparam); + Dialog_TargetParam *dialogtp = new Dialog_TargetParam(*this, tparam); if(dialogtp->run()==Gtk::RESPONSE_OK) tparam=dialogtp->get_tparam();