Keep the Target Param Dialog above its parent
authorCarlos Lopez <genetita@gmail.com>
Wed, 26 May 2010 15:14:52 +0000 (17:14 +0200)
committerCarlos Lopez <genetita@gmail.com>
Wed, 26 May 2010 15:14:52 +0000 (17:14 +0200)
synfig-studio/src/gtkmm/dialog_targetparam.cpp
synfig-studio/src/gtkmm/dialog_targetparam.h
synfig-studio/src/gtkmm/render.cpp

index 7884ca5..ac8540b 100644 (file)
@@ -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)));
index f9a986c..7264456 100644 (file)
@@ -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_; }
index fa54450..5de4148 100644 (file)
@@ -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();