[gnome-packagekit] Ensure we show the newly assigned icon



commit 2abaf9cbd92857a899bfe882c7eaf0317ccba847
Author: Richard Hughes <richard hughsie com>
Date:   Tue May 26 18:29:15 2009 +0100

    Ensure we show the newly assigned icon
---
 src/gpk-check-update.c |    1 +
 src/gpk-watch.c        |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gpk-check-update.c b/src/gpk-check-update.c
index 04fb88c..236de20 100644
--- a/src/gpk-check-update.c
+++ b/src/gpk-check-update.c
@@ -856,6 +856,7 @@ gpk_check_update_process_updates (GpkCheckUpdate *cupdate, PkPackageList *list,
 	/* work out icon (cannot be NULL) */
 	icon = gpk_check_update_get_best_update_icon (cupdate, list);
 	gtk_status_icon_set_from_icon_name (cupdate->priv->status_icon, icon);
+	gtk_status_icon_set_visible (watch->priv->status_icon, TRUE);
 
 	/* make tooltip */
 	if (status_security->len != 0)
diff --git a/src/gpk-watch.c b/src/gpk-watch.c
index 639dd82..98e3328 100644
--- a/src/gpk-watch.c
+++ b/src/gpk-watch.c
@@ -331,6 +331,7 @@ out:
 		return FALSE;
 	}
 	gtk_status_icon_set_from_icon_name (watch->priv->status_icon, icon_name);
+	gtk_status_icon_set_visible (watch->priv->status_icon, TRUE);
 	return TRUE;
 }
 



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