}
}
-static void
-path_save(Path *path, const gchar *config_dir, const gchar *file)
-{
-GnomeVFSHandle *handle;
-gchar *tfile;
-tfile=gnome_vfs_uri_make_full_from_relative(config_dir, file);
-if (GNOME_VFS_OK == gnome_vfs_create(&handle, tfile, GNOME_VFS_OPEN_WRITE, FALSE, 0600)) {
- gpx_write(path, handle);
- gnome_vfs_close(handle);
-}
-g_free(tfile);
-}
-
gboolean
config_save_repo(void)
{
gconf_client_set_int(gconf_client, GCONF_KEY_POI_ZOOM, _poi_zoom, NULL);
gconf_client_suggest_sync(gconf_client, NULL);
-#if 0
-gconf_client_clear_cache(gconf_client);
-#endif
g_free(config_dir);
return TRUE;
}
-static void
-path_load(Path *path, const gchar *config_dir, const gchar *file)
-{
-gchar *pfile;
-gchar *bytes;
-gint size;
-
-pfile = gnome_vfs_uri_make_full_from_relative(config_dir, file);
-if (GNOME_VFS_OK == gnome_vfs_read_entire_file(pfile, &size, &bytes))
- gpx_parse(path, bytes, size, GPX_PATH_NEW);
-g_free(pfile);
-}
-
/**
*
*/
#include <gtk/gtk.h>
+#include "mapper-types.h"
+#include "path.h"
#include "utils.h"
#include "map.h"
-#include "route.h"
-#include "mapper-types.h"
#include "track.h"
-#include "path.h"
+#include "route.h"
#include "settings.h"
#include "latlon.h"
+#include "gpx.h"
Path *
path_new(void)
return FALSE;
}
+gboolean
+path_load(Path *path, const gchar *config_dir, const gchar *file)
+{
+gchar *pfile;
+gchar *bytes;
+gint size;
+
+pfile = gnome_vfs_uri_make_full_from_relative(config_dir, file);
+if (gnome_vfs_read_entire_file(pfile, &size, &bytes)==GNOME_VFS_OK)
+ gpx_parse(path, bytes, size, GPX_PATH_NEW);
+g_free(pfile);
+return TRUE;
+}
+
+gboolean
+path_save(Path *path, const gchar *config_dir, const gchar *file)
+{
+GnomeVFSHandle *handle;
+gchar *tfile;
+tfile=gnome_vfs_uri_make_full_from_relative(config_dir, file);
+if (gnome_vfs_create(&handle, tfile, GNOME_VFS_OPEN_WRITE, FALSE, 0600)==GNOME_VFS_OK) {
+ gpx_write(path, handle);
+ gnome_vfs_close(handle);
+}
+g_free(tfile);
+return TRUE;
+}
+
/**
* Add a text description at current point
*