changeset 4696:851b12bf90d2

Properly escape all appropriate entities.
author William Pitcock <nenolod@atheme.org>
date Sat, 05 Jul 2008 20:46:02 -0500
parents 225f78715e65
children 3b4400ab7397 b6ec9d345b14
files src/audacious/ui_new.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/audacious/ui_new.c	Sat Jul 05 17:27:40 2008 -0500
+++ b/src/audacious/ui_new.c	Sat Jul 05 20:46:02 2008 -0500
@@ -87,9 +87,12 @@
 static void
 ui_set_current_song_title(gchar *text, gpointer user_data)
 {
-    gchar *title = g_strdup_printf("<big>%s</big>", text);
-    gtk_label_set_text(GTK_LABEL(label_current), title);
-    g_object_set(G_OBJECT(label_current), "use-markup", TRUE, NULL);
+    gchar *esc_title = g_markup_escape_text(text, -1);
+    gchar *title = g_strdup_printf("<big>%s</big>", esc_title);
+
+    gtk_label_set_markup(GTK_LABEL(label_current), title);
+
+    g_free(esc_title);
     g_free(title);
 }