summaryrefslogtreecommitdiff
path: root/audio/ardour/files/patch-gtk2__ardour_gain__meter.cc
diff options
context:
space:
mode:
Diffstat (limited to 'audio/ardour/files/patch-gtk2__ardour_gain__meter.cc')
-rw-r--r--audio/ardour/files/patch-gtk2__ardour_gain__meter.cc25
1 files changed, 25 insertions, 0 deletions
diff --git a/audio/ardour/files/patch-gtk2__ardour_gain__meter.cc b/audio/ardour/files/patch-gtk2__ardour_gain__meter.cc
new file mode 100644
index 000000000000..7bb7bfaf1932
--- /dev/null
+++ b/audio/ardour/files/patch-gtk2__ardour_gain__meter.cc
@@ -0,0 +1,25 @@
+--- gtk2_ardour/gain_meter.cc.orig 2010-04-20 17:28:37 UTC
++++ gtk2_ardour/gain_meter.cc
+@@ -63,7 +63,7 @@ Glib::RefPtr<Gdk::Pixbuf> GainMeter::slider;
+ void
+ GainMeter::setup_slider_pix ()
+ {
+- if ((slider = ::get_icon ("fader_belt")) == 0) {
++ if (!(slider = ::get_icon ("fader_belt"))) {
+ throw failed_constructor();
+ }
+ }
+@@ -89,11 +89,11 @@ GainMeterBase::GainMeterBase (Session& s,
+ if (horizontal) {
+ gain_slider = manage (new HSliderController (pix,
+ &gain_adjustment,
+- false));
++ 0x0));
+ } else {
+ gain_slider = manage (new VSliderController (pix,
+ &gain_adjustment,
+- false));
++ 0x0));
+ }
+
+ level_meter = new LevelMeter(_session);