[gtk+/open-with-dialog] open-with-widget: make sure to escape the string we use for markup
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/open-with-dialog] open-with-widget: make sure to escape the string we use for markup
- Date: Tue, 23 Nov 2010 17:16:09 +0000 (UTC)
commit abf3b4af0780318d843ef8b23bf7752ba883370b
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Tue Nov 23 18:15:28 2010 +0100
open-with-widget: make sure to escape the string we use for markup
gtk/gtkappchooserwidget.c | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gtk/gtkappchooserwidget.c b/gtk/gtkappchooserwidget.c
index bafff98..477fd57 100644
--- a/gtk/gtkappchooserwidget.c
+++ b/gtk/gtkappchooserwidget.c
@@ -449,11 +449,11 @@ gtk_app_chooser_widget_add_section (GtkAppChooserWidget *self,
heading_added = TRUE;
}
- app_string = g_strdup_printf ("<b>%s</b>\n%s",
- g_app_info_get_display_name (app) != NULL ?
- g_app_info_get_display_name (app) : "",
- g_app_info_get_description (app) != NULL ?
- g_app_info_get_description (app) : "");
+ app_string = g_markup_printf_escaped ("<b>%s</b>\n%s",
+ g_app_info_get_display_name (app) != NULL ?
+ g_app_info_get_display_name (app) : "",
+ g_app_info_get_description (app) != NULL ?
+ g_app_info_get_description (app) : "");
icon = g_app_info_get_icon (app);
if (icon == NULL)
@@ -510,11 +510,11 @@ gtk_app_chooser_add_default (GtkAppChooserWidget *self,
g_free (string);
- string = g_strdup_printf ("<b>%s</b>\n%s",
- g_app_info_get_display_name (app) != NULL ?
- g_app_info_get_display_name (app) : "",
- g_app_info_get_description (app) != NULL ?
- g_app_info_get_description (app) : "");
+ string = g_markup_printf_escaped ("<b>%s</b>\n%s",
+ g_app_info_get_display_name (app) != NULL ?
+ g_app_info_get_display_name (app) : "",
+ g_app_info_get_description (app) != NULL ?
+ g_app_info_get_description (app) : "");
icon = g_app_info_get_icon (app);
if (icon == NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]