src/mainwindow.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit 4f31ec83a8226301336879a36d16b0283abca212 Author: Christoph Haag <christoph.h...@collabora.com> Date: Tue Nov 5 22:35:24 2019 +0100 mainwindow: escape nameLabel Fixes a warning with the 'Valve VR Radio & HMD Mic' device. diff --git a/src/mainwindow.cc b/src/mainwindow.cc index a402945..09dc783 100644 --- a/src/mainwindow.cc +++ b/src/mainwindow.cc @@ -374,7 +374,9 @@ void MainWindow::updateCard(const pa_card_info &info) { description = pa_proplist_gets(info.proplist, PA_PROP_DEVICE_DESCRIPTION); w->name = description ? description : info.name; - w->nameLabel->set_markup(w->name.c_str()); + gchar *txt; + w->nameLabel->set_markup(txt = g_markup_printf_escaped("%s", w->name.c_str())); + g_free(txt); icon = pa_proplist_gets(info.proplist, PA_PROP_DEVICE_ICON_NAME); set_icon_name_fallback(w->iconImage, icon ? icon : "audio-card", Gtk::ICON_SIZE_SMALL_TOOLBAR); _______________________________________________ pulseaudio-commits mailing list pulseaudio-commits@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/pulseaudio-commits