]> err.no Git - mapper/commitdiff
More fixes for handling dir and file varibles
authorKaj-Michael Lang <milang@angel.tal.org>
Fri, 27 Jul 2007 12:24:27 +0000 (15:24 +0300)
committerKaj-Michael Lang <milang@angel.tal.org>
Fri, 27 Jul 2007 12:24:27 +0000 (15:24 +0300)
src/file.h
src/route.c
src/track.c

index da01b302a93e65499eacb766eb14ba5fbc3881b5..f8444799f13c16115879a6721613c8e98acb0f45 100644 (file)
@@ -1,8 +1,8 @@
 #ifndef _MAPPER_FILE_H
 #define _MAPPER_FILE_H
 
-gboolean file_save(gchar *dir, gchar *file, GnomeVFSHandle **vfs);
-gboolean file_open(gchar *dir, gchar *file, GnomeVFSHandle **vfs);
+gboolean file_save(gchar **dir, gchar **file, GnomeVFSHandle **vfs);
+gboolean file_open(gchar **dir, gchar **file, GnomeVFSHandle **vfs);
 gboolean open_file(gchar ** bytes_out, GnomeVFSHandle ** handle_out, gint * size_out,
          gchar ** dir, gchar ** file, GtkFileChooserAction chooser_action);
 
index 2dac69913497b1152011c99af0a9d6b5580b39f5..8b1452cf381153ba10ce4bc591cf45de27683b1e 100644 (file)
@@ -70,7 +70,7 @@ route_save(void)
 {
 GnomeVFSHandle *handle;
 
-if (file_save(_route_dir_uri, _route_dir_uri, &handle)) {
+if (file_save(&_route_dir_uri, &_route_dir_uri, &handle)) {
        if (write_gpx(&_route, handle)) {
                MACRO_BANNER_SHOW_INFO(_window, _("Route Saved"));
        } else {
index 14055aa914bf02a45b230215dd6edc5f35299a3a..408e46a83917e87bfc66a6a685687d07e0641d19 100644 (file)
@@ -267,7 +267,7 @@ gboolean track_save(void)
        GnomeVFSHandle *handle;
        gboolean r = FALSE;
 
-       if (file_save(_track_file_uri, _track_file_uri, &handle)) {
+       if (file_save(&_track_file_uri, &_track_file_uri, &handle)) {
                if (write_gpx(&_track, handle)) {
                        MACRO_BANNER_SHOW_INFO(_window, _("Track Saved"));
                        r = TRUE;