[gnome-photos/gnome-3-14] main-toolbar: Escape special characters only when using markup



commit 27f4179c3ff238e1f24882407a72a719c8a1f641
Author: Sparsh Paliwal <sparshpaliwal123 gmail com>
Date:   Fri Mar 27 18:53:18 2015 +0530

    main-toolbar: Escape special characters only when using markup
    
    Fall out from f284c1e71108bbfaffc32aaf96326457726823e1
    
    https://bugzilla.gnome.org/show_bug.cgi?id=746252

 src/photos-main-toolbar.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/photos-main-toolbar.c b/src/photos-main-toolbar.c
index 71ab74c..61e818d 100644
--- a/src/photos-main-toolbar.c
+++ b/src/photos-main-toolbar.c
@@ -97,7 +97,7 @@ photos_main_toolbar_set_toolbar_title (PhotosMainToolbar *self)
       if (!selection_mode)
         {
           if (active_collection != NULL)
-            primary = g_markup_printf_escaped ("%s", photos_base_item_get_name (PHOTOS_BASE_ITEM 
(active_collection)));
+            primary = g_strdup (photos_base_item_get_name (PHOTOS_BASE_ITEM (active_collection)));
         }
       else
         {
@@ -120,7 +120,8 @@ photos_main_toolbar_set_toolbar_title (PhotosMainToolbar *self)
             }
           else
             {
-              primary = g_markup_printf_escaped ("%s", label);
+              primary = label;
+              label = NULL;
             }
 
           g_free (label);
@@ -132,7 +133,7 @@ photos_main_toolbar_set_toolbar_title (PhotosMainToolbar *self)
 
       item = photos_base_manager_get_active_object (priv->item_mngr);
       if (item != NULL)
-        primary = g_markup_printf_escaped ("%s", photos_base_item_get_name (PHOTOS_BASE_ITEM (item)));
+        primary = g_strdup (photos_base_item_get_name (PHOTOS_BASE_ITEM (item)));
     }
 
   if (selection_mode)


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