[pulseaudio-commits] [Git][pulseaudio/pavucontrol][master] mainwindow: escape nameLabel

Arun Raghavan gitlab at gitlab.freedesktop.org
Sun Dec 22 06:00:38 UTC 2019



Arun Raghavan pushed to branch master at PulseAudio / pavucontrol


Commits:
4f31ec83 by Christoph Haag at 2019-12-22T05:57:20Z
mainwindow: escape nameLabel

Fixes a warning with the 'Valve VR Radio & HMD Mic' device.

- - - - -


1 changed file:

- src/mainwindow.cc


Changes:

=====================================
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);



View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pavucontrol/commit/4f31ec83a8226301336879a36d16b0283abca212

-- 
View it on GitLab: https://gitlab.freedesktop.org/pulseaudio/pavucontrol/commit/4f31ec83a8226301336879a36d16b0283abca212
You're receiving this email because of your account on gitlab.freedesktop.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/pulseaudio-commits/attachments/20191222/06fa544e/attachment.htm>


More information about the pulseaudio-commits mailing list