[gnome-packagekit] Ensure we show the newly assigned icon
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-packagekit] Ensure we show the newly assigned icon
- Date: Tue, 26 May 2009 13:42:14 -0400 (EDT)
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]