summaryrefslogtreecommitdiffstats
path: root/src/file.cpp
diff options
context:
space:
mode:
authorbulia byak <buliabyak@gmail.com>2007-04-01 01:18:40 +0000
committerbuliabyak <buliabyak@users.sourceforge.net>2007-04-01 01:18:40 +0000
commit4ea8f0cec1fb8cac8b6f9b3b87b176a8b9a21d8c (patch)
tree7f4feb68ec72132007106b0282c8ca84d898dc6a /src/file.cpp
parentwhen creating .inkscape profile dir, also create empty subdirs for templates ... (diff)
downloadinkscape-4ea8f0cec1fb8cac8b6f9b3b87b176a8b9a21d8c.tar.gz
inkscape-4ea8f0cec1fb8cac8b6f9b3b87b176a8b9a21d8c.zip
allow easy access to templates profile dir from save dialog
(bzr r2797)
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/file.cpp b/src/file.cpp
index efbada332..0a81069d9 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -621,6 +621,11 @@ sp_file_save_dialog(SPDocument *doc, bool is_copy)
saveDialog->change_title(dialog_title);
saveDialog->setSelectionType(extension);
+ // allow easy access to the user's own templates folder
+ gchar *templates = profile_path ("templates");
+ dynamic_cast<Gtk::FileChooser *>(saveDialog)->add_shortcut_folder(templates);
+ g_free (templates);
+
bool success = saveDialog->show();
if (!success) {
delete saveDialog;