g_tree_insert(_pui_tree, pui, pui);
#ifdef WITH_OSSO
if (iap_is_connected() && !_curl_sid)
+#else
+ if (!_curl_sid)
#endif
_curl_sid = g_timeout_add(100,(GSourceFunc)map_download_timeout, NULL);
/* Don't do anything else. */
#endif
_num_downloads = _curr_download = 0;
} else
- hildon_banner_set_fraction(HILDON_BANNER(_download_banner),
- _curr_download / (double)_num_downloads);
+ hildon_banner_set_fraction(HILDON_BANNER(_download_banner), _curr_download / (double)_num_downloads);
return FALSE;
}
pui->tilex = tilex;
pui->tiley = tiley;
pui->zoom = zoom;
-pui->priority = (abs((gint) tilex - unit2tile(_center.unitx))
- + abs((gint) tiley - unit2tile(_center.unity)));
+pui->priority = (abs((gint) tilex - unit2tile(_center.unitx)) + abs((gint) tiley - unit2tile(_center.unity)));
if (!retries)
pui->priority = -pui->priority; /* "Negative" makes them lowest pri. */
pui->retries = retries;
g_tree_insert(_pui_tree, pui, pui);
#ifdef WITH_OSSO
if (iap_is_connected() && !_curl_sid)
+#else
+if (!_curl_sid)
#endif
_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++ && !_download_banner) {
+ gchar buffer[100];
+ g_snprintf(buffer, 100, _("Downloading maps (%d/%d)"), _curr_download, _num_downloads);
+ _download_banner = hildon_banner_show_progress(_window, NULL, buffer);
+}
}
void