patch-gtk2_ardour_fft_graph_cc 828 B

12345678910111213141516171819202122232425262728
  1. $OpenBSD: patch-gtk2_ardour_fft_graph_cc,v 1.1 2016/10/28 13:46:17 ajacoutot 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. --- gtk2_ardour/fft_graph.cc.orig Fri Oct 28 11:31:43 2016
  7. +++ gtk2_ardour/fft_graph.cc Fri Oct 28 13:41:10 2016
  8. @@ -190,7 +190,7 @@ FFTGraph::draw_scales(Glib::RefPtr<Gdk::Window> window
  9. - if (graph_gc == 0) {
  10. + if (! graph_gc) {
  11. graph_gc = GC::create( get_window() );
  12. }
  13. @@ -200,7 +200,7 @@ FFTGraph::draw_scales(Glib::RefPtr<Gdk::Window> window
  14. graph_gc->set_rgb_fg_color( grey );
  15. - if (layout == 0) {
  16. + if (! layout) {
  17. layout = create_pango_layout ("");
  18. layout->set_font_description (get_style()->get_font());
  19. }