[gnome-packagekit] Don't escape the desktop summary in the run dialog. Fixes #596010



commit 8983e6feb84f9edd8dda57ec99ee328c7fa6f371
Author: Richard Hughes <richard hughsie com>
Date:   Wed Sep 23 09:23:29 2009 +0100

    Don't escape the desktop summary in the run dialog. Fixes #596010

 src/gpk-helper-run.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/gpk-helper-run.c b/src/gpk-helper-run.c
index e9bed02..e793df1 100644
--- a/src/gpk-helper-run.c
+++ b/src/gpk-helper-run.c
@@ -271,12 +271,9 @@ gpk_helper_run_add_desktop_file (GpkHelperRun *helper, const gchar *package_id,
 	}
 
 	/* get summary */
-	text = g_key_file_get_locale_string (file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_COMMENT, NULL, NULL);
-	if (text == NULL)
-		text = g_key_file_get_locale_string (file, G_KEY_FILE_DESKTOP_GROUP, "GenericName", NULL, NULL);
-	if (text != NULL)
-		summary = g_markup_escape_text (text, -1);
-	g_free (text);
+	summary = g_key_file_get_locale_string (file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_COMMENT, NULL, NULL);
+	if (summary == NULL)
+		summary = g_key_file_get_locale_string (file, G_KEY_FILE_DESKTOP_GROUP, "GenericName", NULL, NULL);
 
 	/* get application path */
 	text = gpk_desktop_get_menu_path (filename);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]