[Xfce4-commits] <xfce4-session:master> Always escape name and comment in dialog.

Nick Schermer noreply at xfce.org
Sat Apr 14 09:06:01 CEST 2012


Updating branch refs/heads/master
         to fa47da4df5e4f1d5cc313be2c2adfb80652f575f (commit)
       from b04c3a211c8da7e788c52c772d9d713e2aa9233a (commit)

commit fa47da4df5e4f1d5cc313be2c2adfb80652f575f
Author: Nick Schermer <nick at xfce.org>
Date:   Sat Apr 14 09:04:19 2012 +0200

    Always escape name and comment in dialog.

 settings/xfae-model.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/settings/xfae-model.c b/settings/xfae-model.c
index d53dabb..b137c5e 100644
--- a/settings/xfae-model.c
+++ b/settings/xfae-model.c
@@ -281,13 +281,13 @@ xfae_model_get_value (GtkTreeModel *tree_model,
     case XFAE_MODEL_COLUMN_NAME:
       g_value_init (value, G_TYPE_STRING);
       if (G_LIKELY (item->comment != NULL && *item->comment != '\0'))
-        name = g_strdup_printf ("%s (%s)", item->name, item->comment);
+        name = g_markup_printf_escaped ("%s (%s)", item->name, item->comment);
       else
-        name = g_strdup (item->name);
+        name = g_markup_printf_escaped ("%s", item->name);
 
       if (!item->show_in_xfce)
         {
-          cursive = g_markup_printf_escaped ("<i>%s</i>", name);
+          cursive = g_strdup_printf ("<i>%s</i>", name);
           g_free (name);
           name = cursive;
         }


More information about the Xfce4-commits mailing list