message);
g_error_free (error);
}
g_hash_table_destroy (details);
g_object_unref (contact);
}
}
champlain_view_add_layer (view, layer);
champlain_layer_show (layer);
champlain_layer_show_all_markers (CHAMPLAIN_LAYER (layer));
create_map_window (map_widget, _("Contacts map"));
/* Do not ensure something visible is we have nothing */
if (min_lat && min_lng && max_lat && max_lng)
champlain_view_ensure_visible (view,
*min_lat, *min_lng,
*max_lat, *max_lng, FALSE);
g_free (min_lat);
g_free (max_lat);
g_free (min_lng);
g_free (max_lng);
g_object_unref (geocoder);
if (contacts != NULL)
g_list_free (contacts);
g_object_unref (book);
g_free (uri);
}
b9aa53fff8e1fa9f60f0492af968b703ddbaf5'>commitdiffstats
|