From 3d49816ba97221f76518cb0f2b7ddb3afe22e083 Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Fri, 28 May 2010 17:26:56 +0200 Subject: [PATCH] Only enable choose target parameters button if ffmpeg target is selected --- synfig-studio/src/gtkmm/render.cpp | 4 +++- synfig-studio/src/gtkmm/render.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) 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; -- 2.7.4