From 80db70b11801b01234075955483f9d8aaf657439 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 9 Jan 2008 17:02:01 +0200 Subject: [PATCH] Display progress as numbers too --- src/map-download.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/map-download.c b/src/map-download.c index acc7657..017ba59 100644 --- a/src/map-download.c +++ b/src/map-download.c @@ -412,6 +412,14 @@ if (++_curr_download == _num_downloads) { gtk_progress_bar_set_text(_progress_item, ""); #endif } else { + gchar buffer[64]; + + g_snprintf(buffer, sizeof(buffer), _("Downloading maps (%d/%d)"), _curr_download, _num_downloads); +#ifdef WITH_HILDON + hildon_banner_set_text(HILDON_BANNER(_download_banner), buffer); +#else + gtk_progress_bar_set_text(_progress_item, buffer); +#endif hildon_banner_set_fraction(HILDON_BANNER(_download_banner), _curr_download / (double)_num_downloads); } return FALSE; -- 2.39.5