OSDN Git Service

LinGui: fix title dropdown bug when title name has '&' in it
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 18 Jan 2011 21:44:46 +0000 (21:44 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Tue, 18 Jan 2011 21:44:46 +0000 (21:44 +0000)
git-svn-id: svn://localhost/HandBrake/trunk@3756 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/src/hb-backend.c

index 9527977..c5e1cad 100644 (file)
@@ -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