[gnome-packagekit] Show the application name in the run listbox
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Show the application name in the run listbox
- Date: Mon, 22 Aug 2011 20:01:20 +0000 (UTC)
commit 88d9398095011ab274ca0414ac056ee052eb1cd5
Author: Richard Hughes <richard hughsie com>
Date: Mon Aug 22 16:11:08 2011 +0100
Show the application name in the run listbox
This is basically a typo that caused all the text to be empty, and also had a
double free for some applications. Nice!
src/gpk-helper-run.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/gpk-helper-run.c b/src/gpk-helper-run.c
index 793cb0a..ed274e6 100644
--- a/src/gpk-helper-run.c
+++ b/src/gpk-helper-run.c
@@ -278,7 +278,6 @@ gpk_helper_run_add_desktop_file (GpkHelperRun *helper, const gchar *package_id,
text = g_key_file_get_locale_string (file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_NAME, NULL, NULL);
if (text != NULL)
name = g_markup_escape_text (text, -1);
- g_free (text);
/* get icon */
icon = g_key_file_get_string (file, G_KEY_FILE_DESKTOP_GROUP, G_KEY_FILE_DESKTOP_KEY_ICON, NULL);
@@ -295,7 +294,7 @@ gpk_helper_run_add_desktop_file (GpkHelperRun *helper, const gchar *package_id,
/* put formatted text into treeview */
gtk_list_store_append (helper->priv->list_store, &iter);
joint = g_strdup_printf ("%s - %s", name, summary);
- text = gpk_package_id_format_twoline (NULL, package_id, joint);
+ fulltext = gpk_package_id_format_twoline (NULL, package_id, joint);
gtk_list_store_set (helper->priv->list_store, &iter,
GPK_CHOOSER_COLUMN_TEXT, fulltext,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]