g_tree_remove(_downloading_tree, pui);
if (++_curr_download == _num_downloads) {
-#ifdef WITH_HILDON
- gtk_widget_destroy(_download_banner);
- _download_banner = NULL;
-#else
_num_downloads = _curr_download = 0;
- hildon_banner_set_fraction(HILDON_BANNER(_download_banner), 0.0);
+ gtk_progress_bar_set_fraction(_progress_item, 0.0);
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);
+ gtk_progress_bar_set_fraction(_progress_item, _curr_download / (double)_num_downloads);
}
return FALSE;
}
if (iap_is_connected() && !_curl_sid)
_curl_sid = g_timeout_add(100, (GSourceFunc) map_download_timeout, NULL);
-if (!_num_downloads++ && !_download_banner) {
- _download_banner = hildon_banner_show_progress(_window, NULL, _("Downloading maps..."));
-}
+if (!_num_downloads++)
+ gtk_progress_bar_set_text(_progress_item, _("Downloading maps..."));
}
void