[tracker/rss-enclosures] Bug 621126 - Status icon's progress bars should be at 0% on init
- From: Roberto Guido <rguido src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/rss-enclosures] Bug 621126 - Status icon's progress bars should be at 0% on init
- Date: Sat, 26 Jun 2010 23:20:32 +0000 (UTC)
commit 0ea45ebf74022364a57291afbe1ae377c27699a9
Author: Carlos Garnacho <carlosg gnome org>
Date: Tue Jun 15 13:50:30 2010 +0200
Bug 621126 - Status icon's progress bars should be at 0% on init
Hide progress bar/label for non-initialized miners on startup, also
set initial progress to 0% so there are no glitches.
src/tracker-status-icon/tracker-status-icon.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-status-icon/tracker-status-icon.c b/src/tracker-status-icon/tracker-status-icon.c
index edb450b..76ef304 100644
--- a/src/tracker-status-icon/tracker-status-icon.c
+++ b/src/tracker-status-icon/tracker-status-icon.c
@@ -599,14 +599,14 @@ miner_menu_entry_add (TrackerStatusIcon *icon,
gtk_misc_set_alignment (GTK_MISC (entry->name), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (entry->box), entry->name, TRUE, TRUE, 0);
- entry->progress_percentage = gtk_label_new ("100%");
+ entry->progress_percentage = gtk_label_new ("0%");
gtk_misc_set_alignment (GTK_MISC (entry->progress_percentage), 1.0, 0.5);
gtk_box_pack_start (GTK_BOX (entry->box), entry->progress_percentage, FALSE, TRUE, 0);
entry->progress_bar = gtk_progress_bar_new ();
gtk_progress_bar_set_pulse_step (GTK_PROGRESS_BAR (entry->progress_bar), 0.02);
gtk_progress_bar_set_ellipsize (GTK_PROGRESS_BAR (entry->progress_bar), PANGO_ELLIPSIZE_END);
- gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (entry->progress_bar), 1.00);
+ gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (entry->progress_bar), 0.00);
/* Get the font ascent for the current font and language */
context = gtk_widget_get_pango_context (entry->progress_bar);
@@ -848,7 +848,7 @@ status_icon_initialize_miners_menu (TrackerStatusIcon *icon)
g_signal_connect (G_OBJECT (item), "toggled",
G_CALLBACK (context_menu_pause_cb), icon);
- gtk_widget_show_all (priv->miner_menu);
+ gtk_widget_show (priv->miner_menu);
}
static GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]