From: Kaj-Michael Lang Date: Fri, 27 Jul 2007 12:24:27 +0000 (+0300) Subject: More fixes for handling dir and file varibles X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a4f165a2133b8b4836821729bb07f87081d5aef5;p=mapper More fixes for handling dir and file varibles --- diff --git a/src/file.h b/src/file.h index da01b30..f844479 100644 --- a/src/file.h +++ b/src/file.h @@ -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); diff --git a/src/route.c b/src/route.c index 2dac699..8b1452c 100644 --- a/src/route.c +++ b/src/route.c @@ -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 { diff --git a/src/track.c b/src/track.c index 14055aa..408e46a 100644 --- a/src/track.c +++ b/src/track.c @@ -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;