[gnome-packagekit] Don't show finished tasks in the menu dropdown
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Don't show finished tasks in the menu dropdown
- Date: Wed, 14 Oct 2009 15:32:27 +0000 (UTC)
commit ec1762010019b0ace04c8add78215b165b35d691
Author: Richard Hughes <richard hughsie com>
Date: Wed Oct 14 08:52:56 2009 +0100
Don't show finished tasks in the menu dropdown
src/gpk-watch.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-watch.c b/src/gpk-watch.c
index bc7a33a..da95639 100644
--- a/src/gpk-watch.c
+++ b/src/gpk-watch.c
@@ -819,6 +819,14 @@ gpk_watch_populate_menu_with_jobs (GpkWatch *watch, GtkMenu *menu)
g_object_get (progress,
"role", &role,
"status", &status,
+ NULL);
+
+ /* ignore boring status values */
+ if (status == PK_STATUS_ENUM_FINISHED)
+ continue;
+
+ /* do this in two steps as this data needs to be freed */
+ g_object_get (progress,
"transaction-id", &transaction_id,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]