summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-20 21:50:26 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2011-09-21 11:35:20 -0700
commita817f4b547b4193d31154fd0ff7f5190ccae76a5 (patch)
tree27d82a086d9b653badc422f7531fd8323570f2e9 /gtk-gui.c
parent8a8ad3f9978c47d9ba10085236e6e6722949b5e2 (diff)
downloadsubsurface-a817f4b547b4193d31154fd0ff7f5190ccae76a5.tar.gz
Use the last (or only) filename on command line as default for saving
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index 1a3838e67..3994387ac 100644
--- 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;
+}