summaryrefslogtreecommitdiff
path: root/audio/ardour/files/patch-gtk2__ardour_gain__meter.cc
diff options
context:
space:
mode:
authorAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
committerAntoine Brodin <antoine@FreeBSD.org>2021-01-01 10:11:34 +0000
commit26b4c8f71f91d22e081b27814782686edde0c90a (patch)
tree1c321c39372c25d8634e75b5c8e08edc676b296d /audio/ardour/files/patch-gtk2__ardour_gain__meter.cc
parentNew port: math/py-optuna: A hyperparameter optimization framework (diff)
Revert r559792 to unbreak INDEX and bulk -a
It seems a lot of reverse dependencies were missed With hat: portmgr
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);