From ae13f87f0376e08b2995b31face0e4295872f1d9 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Thu, 22 Jul 2021 14:17:55 +0100 Subject: [PATCH] It's a bit of a rigmarole for GTK to display an infinity sign when building with MSVC :-( --- gtk2_ardour/rc_option_editor.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gtk2_ardour/rc_option_editor.cc b/gtk2_ardour/rc_option_editor.cc index 6ea12525c5..cacdf13e52 100644 --- a/gtk2_ardour/rc_option_editor.cc +++ b/gtk2_ardour/rc_option_editor.cc @@ -1151,7 +1151,12 @@ public: _label.set_alignment (1.0, 0.5); // match buttons below _hscale.set_digits (0); _hscale.set_draw_value(false); +#ifdef COMPILER_MSVC + std::wstring infin = L"\u221e"; // infinity + _hscale.add_mark( 0, Gtk::POS_TOP, g_utf16_to_utf8(reinterpret_cast(infin.c_str()), -1, NULL, NULL, NULL)); +#else _hscale.add_mark( 0, Gtk::POS_TOP, _("\u221e")); // infinity +#endif _hscale.add_mark( 300, Gtk::POS_TOP, _("30 sec")); _hscale.add_mark( 600, Gtk::POS_TOP, _("1 min")); _hscale.add_mark(1200, Gtk::POS_TOP, _("2 mins"));