CURLMsg *msg;
vprintf("%s()\n", __PRETTY_FUNCTION__);
- if (_curl_multi && CURLM_CALL_MULTI_PERFORM
- == curl_multi_perform(_curl_multi, &num_transfers))
+ if (_curl_multi && CURLM_CALL_MULTI_PERFORM == curl_multi_perform(_curl_multi, &num_transfers))
return TRUE; /* Give UI a chance first. */
while (_curl_multi && (msg = curl_multi_info_read(_curl_multi, &num_msgs))) {
static gboolean
map_autozoomer()
{
-static gfloat z=6.0;
-static gint last=6;
+static gfloat z=5.0;
+static gint last=5;
gint iz;
if (_zoom_timeout_sid==0)
return FALSE;
-z=(z+_gps.speed+1)/2;
-if (z>7) z=7.0; else if (z<1) z=1.0;
+z=(z+_gps.speed+1)/3;
+if (z>5) z=5.0; else if (z<1) z=1.0;
iz=(gint)roundf(z);
g_printf("Setting autozoom to: %f %d S:%f\n", z, iz, _gps.speed);
-if (iz>last) iz=last+1;
-else if (iz<last) iz=last-1;
+if (iz>last)
+ iz=last+1;
+else if (iz<last)
+ iz=last-1;
last=iz;
map_set_zoom(iz);
gint ilat, ilon;
gdouble lat,lon, dist;
PoiInfo *p;
-gboolean fs, fm;
+gboolean fs;
unit2latlon(x, y, lat, lon);
{
printf("%s()\n", __PRETTY_FUNCTION__);
+ _cmenu_position_x = event->x + 0.5;
+ _cmenu_position_y = event->y + 0.5;
+
switch (event->button) {
case 1:
if (event->type == GDK_2BUTTON_PRESS) {
G_CALLBACK(map_follow_move), NULL);
break;
case 3:
- _cmenu_position_x = event->x + 0.5;
- _cmenu_position_y = event->y + 0.5;
#ifndef WITH_HILDON
gtk_menu_popup(GTK_MENU(_menu_map), NULL, NULL, NULL, NULL,
event->button, gtk_get_current_event_time());
g_idle_add((GSourceFunc)map_update_location_from_center, NULL);
-
map_center_unit(x2unit((gint) (event->x + 0.5)),
y2unit((gint) (event->y + 0.5)));