[totem/gnome-3-8] thumbnailer: Fix errors in gallery name print



commit aec67ba2be2ab93783ea66ae4f2926e75f09231b
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Apr 18 01:12:53 2013 +0200

    thumbnailer: Fix errors in gallery name print
    
    The filename needs to be escaped before it's printed onto
    the gallery's header.

 src/totem-video-thumbnailer.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/totem-video-thumbnailer.c b/src/totem-video-thumbnailer.c
index 16c427d..9a1ef4b 100644
--- a/src/totem-video-thumbnailer.c
+++ b/src/totem-video-thumbnailer.c
@@ -845,14 +845,14 @@ create_gallery (ThumbApp *app)
        /* Translators: The first string is "Filename" (as translated); the second is an actual filename.
                        The third string is "Resolution" (as translated); the fourth and fifth are screenshot 
height and width, respectively.
                        The sixth string is "Duration" (as translated); the seventh is the movie duration in 
words. */
-       header_text = g_strdup_printf (_("<b>%s</b>: %s\n<b>%s</b>: %d\303\227%d\n<b>%s</b>: %s"),
-                                      _("Filename"),
-                                      filename,
-                                      _("Resolution"),
-                                      screenshot_width,
-                                      screenshot_height,
-                                      _("Duration"),
-                                      duration_text);
+       header_text = g_markup_printf_escaped (_("<b>%s</b>: %s\n<b>%s</b>: %d\303\227%d\n<b>%s</b>: %s"),
+                                              _("Filename"),
+                                              filename,
+                                              _("Resolution"),
+                                              screenshot_width,
+                                              screenshot_height,
+                                              _("Duration"),
+                                              duration_text);
        g_free (duration_text);
        g_free (filename);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]