[tracker/rss-enclosures] TrackerStatusIcon: Query initial state for active miners.



commit 9dd78dc7fb591ff0fbdc053693ebc6c0bd66352c
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jun 15 15:14:41 2010 +0200

    TrackerStatusIcon: Query initial state for active miners.

 src/tracker-status-icon/tracker-status-icon.c |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-status-icon/tracker-status-icon.c b/src/tracker-status-icon/tracker-status-icon.c
index 76ef304..6913aa8 100644
--- a/src/tracker-status-icon/tracker-status-icon.c
+++ b/src/tracker-status-icon/tracker-status-icon.c
@@ -640,6 +640,19 @@ miner_menu_entry_add (TrackerStatusIcon *icon,
 		gtk_widget_set_sensitive (entry->menu_item, FALSE);
 		gtk_widget_hide (entry->progress_bar);
 		gtk_widget_hide (entry->progress_percentage);
+	} else {
+		gdouble progress;
+		gchar *status;
+
+		tracker_miner_manager_get_status (priv->manager, miner, &status, &progress);
+
+		entry->status = status;
+		entry->progress = progress;
+
+		gtk_widget_show (entry->progress_bar);
+		gtk_widget_show (entry->progress_percentage);
+
+		status_icon_miner_progress_set (entry);
 	}
 
 	g_hash_table_replace (priv->miners, str, entry);



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