diff options
author | Cedric Bosdonnat <cedric.bosdonnat.ooo@free.fr> | 2009-11-27 05:05:12 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2009-11-27 05:07:45 +0800 |
commit | 93b157843473065b73cbaa99e998f57d39f189ad (patch) | |
tree | 57ab70a35a3f5c99b25aefae606cccb1a6244eb4 /plugins/contacts-map/geo-utils.h | |
parent | e64794f577ab4bf9ffed0eb88e432ff75ecddd8f (diff) | |
download | gsoc2013-evolution-93b157843473065b73cbaa99e998f57d39f189ad.tar.gz gsoc2013-evolution-93b157843473065b73cbaa99e998f57d39f189ad.tar.zst gsoc2013-evolution-93b157843473065b73cbaa99e998f57d39f189ad.zip |
Bug #361156 - contacts-map plugin
Add a map showing the location of contacts when possible.
It's disabled at the moment.
Diffstat (limited to 'plugins/contacts-map/geo-utils.h')
-rw-r--r-- | plugins/contacts-map/geo-utils.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/contacts-map/geo-utils.h b/plugins/contacts-map/geo-utils.h new file mode 100644 index 0000000000..65248f4893 --- /dev/null +++ b/plugins/contacts-map/geo-utils.h @@ -0,0 +1,28 @@ +#include <gtk/gtk.h> +#include <glib.h> + +#include <libebook/e-book.h> +#include <libebook/e-contact.h> + +#include <geoclue/geoclue-geocode.h> +#include <champlain/champlain.h> +#include <champlain-gtk/champlain-gtk.h> +#include <clutter-gtk/clutter-gtk.h> + +void +get_min_max (gdouble *min_lat, gdouble *max_lat, + gdouble *min_lng, gdouble *max_lng, + gdouble lat, gdouble lng); + +GeoclueGeocode *get_geocoder (void); + +void add_marker ( + ChamplainLayer *layer, + gdouble lat, gdouble lng, + EContact *contact); + +GHashTable *get_geoclue_from_address (const EContactAddress* addr); + +void init_map (ChamplainView **view, GtkWidget **widget); + +void create_map_window (GtkWidget *map_widget, const gchar *title); |