patch-gtk2_ardour_gain_meter_cc 1023 B

12345678910111213141516171819202122232425262728293031323334
  1. $OpenBSD: patch-gtk2_ardour_gain_meter_cc,v 1.2 2017/05/25 09:02:05 espie Exp $
  2. From 65c2e089ab263c83bff7d2e945b80c53f80b749b Mon Sep 17 00:00:00 2001
  3. From: Nils Philippsen <nils@tiptoe.de>
  4. Date: Thu, 4 Aug 2016 09:48:47 +0200
  5. Subject: [PATCH] workaround changes in glibmm 2.49.x
  6. Index: gtk2_ardour/gain_meter.cc
  7. --- gtk2_ardour/gain_meter.cc.orig
  8. +++ gtk2_ardour/gain_meter.cc
  9. @@ -63,7 +63,7 @@ Glib::RefPtr<Gdk::Pixbuf> GainMeter::slider;
  10. void
  11. GainMeter::setup_slider_pix ()
  12. {
  13. - if ((slider = ::get_icon ("fader_belt")) == 0) {
  14. + if (! (slider = ::get_icon ("fader_belt"))) {
  15. throw failed_constructor();
  16. }
  17. }
  18. @@ -89,11 +89,11 @@ GainMeterBase::GainMeterBase (Session& s,
  19. if (horizontal) {
  20. gain_slider = manage (new HSliderController (pix,
  21. &gain_adjustment,
  22. - false));
  23. + nullptr));
  24. } else {
  25. gain_slider = manage (new VSliderController (pix,
  26. &gain_adjustment,
  27. - false));
  28. + nullptr));
  29. }
  30. level_meter = new LevelMeter(_session);