[gnome-packagekit] Zero the size value when the package finished signal is recieved
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-packagekit] Zero the size value when the package finished signal is recieved
- Date: Thu, 8 Apr 2010 18:22:53 +0000 (UTC)
commit 653b6950710d2c46ae86200eedf99963d9bbc21b
Author: Jonathan Conder <j skurvy no-ip org>
Date: Thu Apr 8 19:22:47 2010 +0100
Zero the size value when the package finished signal is recieved
Signed-off-by: Richard Hughes <richard hughsie com>
src/gpk-update-viewer.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-update-viewer.c b/src/gpk-update-viewer.c
index 5a5ca25..376475f 100644
--- a/src/gpk-update-viewer.c
+++ b/src/gpk-update-viewer.c
@@ -962,6 +962,10 @@ gpk_update_viewer_progress_cb (PkProgress *progress, PkProgressType type, GpkUpd
if (role == PK_ROLE_ENUM_UPDATE_PACKAGES) {
/* if the info is finished, change the status to past tense */
if (info == PK_INFO_ENUM_FINISHED) {
+ /* clear the remaining size */
+ gtk_tree_store_set (priv->array_store_updates, &iter,
+ GPK_UPDATES_COLUMN_SIZE_DISPLAY, 0, -1);
+
gtk_tree_model_get (model, &iter,
GPK_UPDATES_COLUMN_STATUS, &info, -1);
/* promote to past tense if present tense */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]