]> err.no Git - mapper/commitdiff
Display progress as numbers too
authorKaj-Michael Lang <milang@onion.tal.org>
Wed, 9 Jan 2008 15:02:01 +0000 (17:02 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Wed, 9 Jan 2008 15:02:01 +0000 (17:02 +0200)
src/map-download.c

index acc7657889bc5afc91f86d4b3bad5ea9bd0aab0a..017ba59e01fea16509fb965a28a06e18398e8df1 100644 (file)
@@ -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;