[gnome-packagekit] When the icon gets UpdatesChanged then hide until the new GetUpdate is complete as the information i



commit eec756f0b053d5bece4db316c92a425de8f39b25
Author: Richard Hughes <richard hughsie com>
Date:   Fri Aug 6 17:00:37 2010 +0100

    When the icon gets UpdatesChanged then hide until the new GetUpdate is complete as the information is likely inaccurate

 src/gpk-check-update.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/gpk-check-update.c b/src/gpk-check-update.c
index 226221a..7c7237d 100644
--- a/src/gpk-check-update.c
+++ b/src/gpk-check-update.c
@@ -1100,6 +1100,9 @@ gpk_check_update_updates_changed_cb (PkControl *control, GpkCheckUpdate *cupdate
 	if (cupdate->priv->updates_changed_id > 0)
 		g_source_remove (cupdate->priv->updates_changed_id);
 
+	/* hiding icon, as it's probably inaccurate */
+	gpk_check_update_set_gicon (cupdate, NULL);
+
 	/* now try to get newest update list */
 	egg_debug ("updates changed, so getting new update list in %is", GPK_CHECK_UPDATE_UPDATES_CHANGED_TIMEOUT);
 	cupdate->priv->updates_changed_id =



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