remove cruft (monitor section knobs are cairo now)

This commit is contained in:
Robin Gareus 2014-11-18 02:09:09 +01:00
parent f39286f92f
commit bd5713f009
3 changed files with 0 additions and 47 deletions

View file

@ -246,8 +246,6 @@ Mixer_UI::Mixer_UI ()
MixerStrip::CatchDeletion.connect (*this, invalidator (*this), boost::bind (&Mixer_UI::remove_strip, this, _1), gui_context());
MonitorSection::setup_knob_images ();
#ifndef DEFER_PLUGIN_SELECTOR_LOAD
_plugin_selector = new PluginSelector (PluginManager::instance ());
#endif

View file

@ -50,8 +50,6 @@ using namespace PBD;
using namespace std;
Glib::RefPtr<ActionGroup> MonitorSection::monitor_actions;
Glib::RefPtr<Gdk::Pixbuf> MonitorSection::big_knob_pixbuf;
Glib::RefPtr<Gdk::Pixbuf> MonitorSection::little_knob_pixbuf;
MonitorSection::MonitorSection (Session* s)
: AxisView (s)
@ -871,45 +869,6 @@ MonitorSection::solo_use_pfl ()
}
}
void
MonitorSection::setup_knob_images ()
{
try {
uint32_t c = ARDOUR_UI::config()->color_by_name ("monitor knob");
char buf[16];
snprintf (buf, 16, "#%x", (c >> 8));
MotionFeedback::set_lamp_color (buf);
big_knob_pixbuf = MotionFeedback::render_pixbuf (80);
} catch (...) {
error << "No usable large knob image" << endmsg;
throw failed_constructor ();
}
if (!big_knob_pixbuf) {
error << "No usable large knob image" << endmsg;
throw failed_constructor ();
}
try {
little_knob_pixbuf = MotionFeedback::render_pixbuf (30);
} catch (...) {
error << "No usable small knob image" << endmsg;
throw failed_constructor ();
}
if (!little_knob_pixbuf) {
error << "No usable small knob image" << endmsg;
throw failed_constructor ();
}
}
void
MonitorSection::update_solo_model ()
{

View file

@ -43,7 +43,6 @@ class MonitorSection : public RouteUI
~MonitorSection ();
void set_session (ARDOUR::Session*);
static void setup_knob_images ();
Gtkmm2ext::TearOff& tearoff() const { return *_tearoff; }
@ -95,9 +94,6 @@ class MonitorSection : public RouteUI
static Glib::RefPtr<Gtk::ActionGroup> monitor_actions;
void register_actions ();
static Glib::RefPtr<Gdk::Pixbuf> big_knob_pixbuf;
static Glib::RefPtr<Gdk::Pixbuf> little_knob_pixbuf;
void cut_channel (uint32_t);
void dim_channel (uint32_t);
void solo_channel (uint32_t);