[gnome-disk-utility/udisks2-port] Escape text used in markup
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility/udisks2-port] Escape text used in markup
- Date: Wed, 9 Nov 2011 15:09:32 +0000 (UTC)
commit 10cc3c9b71615239c4d6d400377adff79a1a9815
Author: David Zeuthen <davidz redhat com>
Date: Wed Nov 9 10:09:20 2011 -0500
Escape text used in markup
Signed-off-by: David Zeuthen <davidz redhat com>
src/palimpsest/gdupartitiondialog.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/palimpsest/gdupartitiondialog.c b/src/palimpsest/gdupartitiondialog.c
index fac525a..40bd1e1 100644
--- a/src/palimpsest/gdupartitiondialog.c
+++ b/src/palimpsest/gdupartitiondialog.c
@@ -189,6 +189,7 @@ edit_partition_populate (EditPartitionData *data)
{
UDisksPartitionTypeInfo *info = l->data;
const gchar *type_for_display;
+ gchar *escaped_type_for_display;
gchar *s;
GtkTreeIter iter;
@@ -212,7 +213,11 @@ edit_partition_populate (EditPartitionData *data)
type_for_display = udisks_client_get_partition_type_for_display (client,
data->partition_table_type,
info->type);
- s = g_strdup_printf ("%s <span foreground=\"#555555\" size=\"small\">(%s)</span>", type_for_display, info->type);
+ escaped_type_for_display = g_markup_escape_text (type_for_display, -1);
+ s = g_strdup_printf ("%s <span foreground=\"#555555\" size=\"small\">(%s)</span>",
+ escaped_type_for_display,
+ info->type);
+ g_free (escaped_type_for_display);
gtk_list_store_insert_with_values (model,
&iter,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]