From: Carlos Lopez Date: Fri, 28 May 2010 15:26:56 +0000 (+0200) Subject: Only enable choose target parameters button if ffmpeg target is selected X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3d49816ba97221f76518cb0f2b7ddb3afe22e083;p=synfig.git Only enable choose target parameters button if ffmpeg target is selected --- diff --git a/synfig-studio/src/gtkmm/render.cpp b/synfig-studio/src/gtkmm/render.cpp index 5de4148..4a7d6d2 100644 --- a/synfig-studio/src/gtkmm/render.cpp +++ b/synfig-studio/src/gtkmm/render.cpp @@ -106,8 +106,9 @@ RenderSettings::RenderSettings(Gtk::Window& parent, etl::handleshow(); choose_button->signal_clicked().connect(sigc::mem_fun(*this, &studio::RenderSettings::on_choose_pressed)); - Gtk::Button *tparam_button(manage(new class Gtk::Button(Gtk::StockID(_("Parameters..."))))); + tparam_button=manage(new class Gtk::Button(Gtk::StockID(_("Parameters...")))); tparam_button->show(); + tparam_button->set_sensitive(false); tparam_button->signal_clicked().connect(sigc::mem_fun(*this, &studio::RenderSettings::on_targetparam_pressed)); Gtk::Frame *target_frame=manage(new Gtk::Frame(_("Target"))); @@ -235,6 +236,7 @@ void RenderSettings::set_target(synfig::String name) { target_name=name; + tparam_button->set_sensitive(target_name.compare("ffmpeg")?false:true); } void diff --git a/synfig-studio/src/gtkmm/render.h b/synfig-studio/src/gtkmm/render.h index 729251b..ac26cbc 100644 --- a/synfig-studio/src/gtkmm/render.h +++ b/synfig-studio/src/gtkmm/render.h @@ -74,6 +74,7 @@ class RenderSettings : public Gtk::Dialog Gtk::OptionMenu optionmenu_target; Gtk::Menu *menu_target; + Gtk::Button *tparam_button; synfig::String target_name;