From: Kaj-Michael Lang Date: Tue, 12 Aug 2008 12:38:18 +0000 (+0300) Subject: Move map tile repository handling to map widget lib X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=754a5b4bc61a3bc1dc5d7298b69e733b84098a39;p=mapper Move map tile repository handling to map widget lib --- diff --git a/libs/libgtkmap/Makefile.am b/libs/libgtkmap/Makefile.am index a09a1a0..31988f1 100644 --- a/libs/libgtkmap/Makefile.am +++ b/libs/libgtkmap/Makefile.am @@ -28,12 +28,13 @@ lib_LTLIBRARIES = libgtkmap.la libgtkmap_la_SOURCES = gtkmap.c gtkmap.h \ gtkmap-marshal.c gtkmap-marshal.h \ path.c path.h position.c position.h \ + tilerepo.c tilerepo.h \ $(TOPDIR)/latlon.c $(TOPDIR)/image-cache.c libgtkmap_la_CFLAGS = $(GLIBGTK_CFLAGS) $(GNOME_VFS_CFLAGS) $(LIBXML2_CFLAGS) $(GTKGLEXT_CFLAGS) $(defines) libgtkmap_la_LIBADD = $(GLIBGTK_LIBS) $(GNOME_VFS_LIBS) $(LIBXML2_LIBS) $(GTKGLEXT_LIBS) libgtkmap_la_LDFLAGS = -lm -no-undefined -map_widget_test_SOURCES = map-widget-test.c $(TOPDIR)/map-tile-repo.c +map_widget_test_SOURCES = map-widget-test.c map_widget_test_LDADD = $(GLIBGTK_LIBS) $(GTKHTML_LIBS) $(CAIRO_LIBS) $(GTKGLEXT_LIBS) -lm libgtkmap.la map_widget_test_CFLAGS = $(GLIBGTK_CFLAGS) $(GTKHTML_CFLAGS) $(CAIRO_CFLAGS) $(GTKGLEXT_CFLAGS) diff --git a/libs/libgtkmap/gtkmap.c b/libs/libgtkmap/gtkmap.c index 1fa1e7a..050a49f 100644 --- a/libs/libgtkmap/gtkmap.c +++ b/libs/libgtkmap/gtkmap.c @@ -41,8 +41,9 @@ #include #endif +#include "tilerepo.h" + #include "image-cache.h" -#include "map-tile-repo.h" #include "latlon.h" #include "gtkmap.h" diff --git a/libs/libgtkmap/gtkmap.h b/libs/libgtkmap/gtkmap.h index 999e5c9..78be206 100644 --- a/libs/libgtkmap/gtkmap.h +++ b/libs/libgtkmap/gtkmap.h @@ -23,7 +23,7 @@ #include #include "path.h" #include "position.h" -#include "map-tile-repo.h" +#include "tilerepo.h" /** * GtkMapCenterMode: diff --git a/libs/libgtkmap/map-widget-test.c b/libs/libgtkmap/map-widget-test.c index 48ae8d8..54ab216 100644 --- a/libs/libgtkmap/map-widget-test.c +++ b/libs/libgtkmap/map-widget-test.c @@ -2,7 +2,7 @@ #include #include "gtkmap.h" -#include "map-tile-repo.h" +#include "tilerepo.h" #define TESTREPO "/home/milang/MyDocs/.documents/Maps/OpenStreet" diff --git a/src/map-tile-repo.c b/libs/libgtkmap/tilerepo.c similarity index 99% rename from src/map-tile-repo.c rename to libs/libgtkmap/tilerepo.c index 11099bc..5b64c54 100644 --- a/src/map-tile-repo.c +++ b/libs/libgtkmap/tilerepo.c @@ -24,7 +24,7 @@ #include #include -#include "map-tile-repo.h" +#include "tilerepo.h" /** * map_tile_repo_new: diff --git a/src/map-tile-repo.h b/libs/libgtkmap/tilerepo.h similarity index 100% rename from src/map-tile-repo.h rename to libs/libgtkmap/tilerepo.h diff --git a/src/Makefile.am b/src/Makefile.am index 577c23d..3761b06 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -75,8 +75,6 @@ mapper_SOURCES = \ map-download.h \ map-poi.c \ map-poi.h \ - map-tile-repo.c \ - map-tile-repo.h \ map-repo-manager.c \ map-repo-manager.h \ mapper.c \ diff --git a/src/config-gconf.c b/src/config-gconf.c index 48d1e8b..0e818d4 100644 --- a/src/config-gconf.c +++ b/src/config-gconf.c @@ -53,7 +53,7 @@ #include "filter.h" #include "dialogs.h" #include "map-repo-manager.h" -#include "map-tile-repo.h" +#include "tilerepo.h" #define PROXY_PORT (8080) diff --git a/src/map-repo-manager.c b/src/map-repo-manager.c index 42efc4c..f860231 100644 --- a/src/map-repo-manager.c +++ b/src/map-repo-manager.c @@ -50,7 +50,7 @@ #include "dialogs.h" #include "help.h" #include "path.h" -#include "map-tile-repo.h" +#include "tilerepo.h" #include "gtkmap.h" #define MAP_REPO_LIST_URL "http://www.gnuite.com/nokia770/maemo-mapper/repos.txt" diff --git a/src/map-repo-manager.h b/src/map-repo-manager.h index 224826c..d3967b6 100644 --- a/src/map-repo-manager.h +++ b/src/map-repo-manager.h @@ -1,7 +1,7 @@ #ifndef _MAP_REPO_H #define _MAP_REPO_H -#include "map-tile-repo.h" +#include "tilerepo.h" GList *_repo_list; RepoData *_curr_repo;