gnome-session r4819 - in branches/dbus_based: . capplet
- From: mccann svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-session r4819 - in branches/dbus_based: . capplet
- Date: Mon, 21 Jul 2008 19:39:19 +0000 (UTC)
Author: mccann
Date: Mon Jul 21 19:39:19 2008
New Revision: 4819
URL: http://svn.gnome.org/viewvc/gnome-session?rev=4819&view=rev
Log:
2008-07-21 William Jon McCann <jmccann redhat com>
* capplet/commands.c (spc_command_get_app_description):
Must escape the comment for displaying as markup
Patch from Matthias Clasen. Fixes #542086
Modified:
branches/dbus_based/ChangeLog
branches/dbus_based/capplet/commands.c
Modified: branches/dbus_based/capplet/commands.c
==============================================================================
--- branches/dbus_based/capplet/commands.c (original)
+++ branches/dbus_based/capplet/commands.c Mon Jul 21 19:39:19 2008
@@ -785,10 +785,10 @@
}
char *
-spc_command_get_app_description (const char *name,
- const char *comment)
+spc_command_get_app_description (const char *name,
+ const char *comment)
{
- return g_strdup_printf ("<b>%s</b>\n%s", name,
- (!gsm_util_text_is_blank (comment) ?
- comment : _("No description")));
+ return g_markup_printf_escaped ("<b>%s</b>\n%s", name,
+ (!gsm_util_text_is_blank (comment) ?
+ comment : _("No description")));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]