[tracker/tracker-0.8] TrackerStatusIcon: Query initial state for active miners.
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.8] TrackerStatusIcon: Query initial state for active miners.
- Date: Thu, 17 Jun 2010 15:40:35 +0000 (UTC)
commit dbc0f3c8b510eed80e4a3ab4e5cd6f914d16bfaa
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]