[Xfce4-commits] <thunar:master> Escape name for sidepane tooltips (bug #10001).

Nick Schermer noreply at xfce.org
Mon Apr 29 20:26:01 CEST 2013


Updating branch refs/heads/master
         to 20780d0c0e186ad8d6a93a42bbb4063918af711c (commit)
       from f35151a2fa4d72c5fa1995d11b29d1a8a6ac6e23 (commit)

commit 20780d0c0e186ad8d6a93a42bbb4063918af711c
Author: Nick Schermer <nick at xfce.org>
Date:   Mon Apr 29 20:24:26 2013 +0200

    Escape name for sidepane tooltips (bug #10001).

 thunar/thunar-shortcuts-model.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/thunar/thunar-shortcuts-model.c b/thunar/thunar-shortcuts-model.c
index ce05c9d..ab4c74d 100644
--- a/thunar/thunar-shortcuts-model.c
+++ b/thunar/thunar-shortcuts-model.c
@@ -529,6 +529,7 @@ thunar_shortcuts_model_get_value (GtkTreeModel *tree_model,
   gchar          *disk_usage;
   guint32         trash_items;
   gchar          *trash_string;
+  gchar          *parse_name;
 
   _thunar_return_if_fail (iter->stamp == THUNAR_SHORTCUTS_MODEL (tree_model)->stamp);
   _thunar_return_if_fail (THUNAR_IS_SHORTCUTS_MODEL (tree_model));
@@ -614,7 +615,11 @@ thunar_shortcuts_model_get_value (GtkTreeModel *tree_model,
             file = NULL;
 
           if (G_LIKELY (file != NULL))
-            shortcut->tooltip = g_file_get_parse_name (file);
+            {
+              parse_name = g_file_get_parse_name (file);
+              shortcut->tooltip = g_markup_escape_text (parse_name, -1);
+              g_free (parse_name);
+            }
         }
 
       g_value_set_static_string (value, shortcut->tooltip);


More information about the Xfce4-commits mailing list