diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-01 16:27:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-01 16:27:52 -0700 |
commit | 1155ad3f0fb2471163335d1d7c6856a81f495e49 (patch) | |
tree | 541fb1ce530b0a6cf0fd9563ff2b664589e3b9d1 /main.c | |
parent | d5e42d485e6c4a62b78281aac900bb447d811ab1 (diff) | |
download | subsurface-1155ad3f0fb2471163335d1d7c6856a81f495e49.tar.gz |
Add ability to 'save' dives
This just generates another xml file. Don't get me wrong: I still don't
like xml, but this way we can save in the same format we load things
from. Except the save-format is a *lot* cleaner than the abortion that
is Suunto or libdivecomputer xml.
Don't bother with some crazy xml library crap for saving. Just do it!
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -96,7 +96,7 @@ static void file_save(GtkWidget *w, gpointer data) if (gtk_dialog_run(GTK_DIALOG(dialog)) == GTK_RESPONSE_ACCEPT) { char *filename; filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog)); - printf("Save: '%s'\n", filename); + save_dives(filename); g_free(filename); } gtk_widget_destroy(dialog); |