diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-26 15:18:04 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-26 15:18:04 +0000 |
commit | b91e1f3605a5845b532a02620e12e3402c4785a5 (patch) | |
tree | 0034e2ac2488d822191c1a51300d9606dbe2db81 /gtk2_ardour/monitor_section.cc | |
parent | 696837ec7a86046ce43dc61fedd4b6de560fc06d (diff) |
generate knob pixbufs at run time but draw from the pixbufs; remove mfimg utility and existing knob icon png files
git-svn-id: svn://localhost/ardour2/branches/3.0@7166 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/monitor_section.cc')
-rw-r--r-- | gtk2_ardour/monitor_section.cc | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/gtk2_ardour/monitor_section.cc b/gtk2_ardour/monitor_section.cc index 5b60942bb1..4ec4166dd1 100644 --- a/gtk2_ardour/monitor_section.cc +++ b/gtk2_ardour/monitor_section.cc @@ -6,6 +6,7 @@ #include "gtkmm2ext/bindable_button.h" #include "gtkmm2ext/tearoff.h" #include "gtkmm2ext/actions.h" +#include "gtkmm2ext/motionfeedback.h" #include "ardour/dB.h" #include "ardour/monitor_processor.h" @@ -738,27 +739,34 @@ MonitorSection::setup_knob_images () { try { - big_knob_pixbuf = ::get_icon ("bigknob"); - + big_knob_pixbuf = MotionFeedback::render_pixbuf (80); + } catch (...) { - error << "No knob image found (or not loadable) at " - << " .... " - << endmsg; + 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 = ::get_icon ("littleknob"); + + little_knob_pixbuf = MotionFeedback::render_pixbuf (30); } catch (...) { - error << "No knob image found (or not loadable) at " - << " .... " - << endmsg; + error << "No usable small knob image" << endmsg; throw failed_constructor (); } + + if (!little_knob_pixbuf) { + error << "No usable small knob image" << endmsg; + throw failed_constructor (); + } + } bool |