]> git.tdb.fi Git - ext/subsurface.git/blobdiff - gtk-gui.c
Use the last (or only) filename on command line as default for saving
[ext/subsurface.git] / gtk-gui.c
index 1a3838e67f59ccdbe10fa612f4c02d949266c09e..3994387acdf5f42f632451152e48b42671c4dde0 100644 (file)
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -651,3 +651,11 @@ void update_progressbar(progressbar_t *progress, double value)
 {
        gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress->bar), value);
 }
+
+
+void set_filename(const char *filename)
+{
+       if (filename)
+               existing_filename = strdup(filename);
+       return;
+}