summaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-01-18 21:44:46 +0000
committerjstebbins <[email protected]>2011-01-18 21:44:46 +0000
commita40e7e9f4ba8269c839ac32e87403f4d4143c455 (patch)
tree340fea77ae70f975aca96f6645162a869e79d607 /gtk
parent4314fb025b97173612c301cf1580d444de3da41b (diff)
LinGui: fix title dropdown bug when title name has '&' in it
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3756 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk')
-rw-r--r--gtk/src/hb-backend.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 952797728..c5e1cadf1 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -1890,14 +1890,20 @@ title_opts_set(GtkBuilder *builder, const gchar *name)
{
if (title->duration != 0)
{
- titles[ii] = g_strdup_printf ("%d - %02dh%02dm%02ds - %s",
+ char *tmp;
+ tmp = g_strdup_printf ("%d - %02dh%02dm%02ds - %s",
title->index, title->hours, title->minutes, title->seconds,
title->name);
+ titles[ii] = g_markup_escape_text(tmp, -1);
+ g_free(tmp);
}
else
{
- titles[ii] = g_strdup_printf ("%d - %s",
+ char *tmp;
+ tmp = g_strdup_printf ("%d - %s",
title->index, title->name);
+ titles[ii] = g_markup_escape_text(tmp, -1);
+ g_free(tmp);
}
}
else