From: Kaj-Michael Lang Date: Wed, 9 Jan 2008 15:02:01 +0000 (+0200) Subject: Display progress as numbers too X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80db70b11801b01234075955483f9d8aaf657439;p=mapper Display progress as numbers too --- 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;