summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: db87089)
raw | patch | inline | side by side (parent: db87089)
author | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 30 Mar 2007 07:08:29 +0000 (07:08 +0000) | ||
committer | buliabyak <buliabyak@users.sourceforge.net> | |
Fri, 30 Mar 2007 07:08:29 +0000 (07:08 +0000) |
src/file.cpp | patch | blob | history | |
src/path-prefix.h | patch | blob | history |
diff --git a/src/file.cpp b/src/file.cpp
index 639ba3913e5080112eeb924dc7f2a761f0d10257..efbada33253b0717ed81bb011f85b58b06ffcdd8 100644 (file)
--- a/src/file.cpp
+++ b/src/file.cpp
open_path,
Inkscape::UI::Dialog::SVG_TYPES,
(char const *)_("Select file to open"));
+ // allow easy access to our examples folder
+ dynamic_cast<Gtk::FileChooser *>(openDialogInstance)->add_shortcut_folder(INKSCAPE_EXAMPLESDIR);
}
+
//# Show the dialog
bool const success = openDialogInstance->show();
if (!success)
diff --git a/src/path-prefix.h b/src/path-prefix.h
index 50895ef7b3822f5f6085ef1456e91f21cb9d2c64..ad7a14ef9f5c22cb9f3c1037e95f61b947b3e6a4 100644 (file)
--- a/src/path-prefix.h
+++ b/src/path-prefix.h
#ifdef ENABLE_BINRELOC
# define INKSCAPE_APPICONDIR BR_DATADIR( "/pixmaps" )
+# define INKSCAPE_EXAMPLESDIR BR_DATADIR( "/inkscape/examples" )
# define INKSCAPE_EXTENSIONDIR BR_DATADIR( "/inkscape/extensions" )
# define INKSCAPE_GRADIENTSDIR BR_DATADIR( "/inkscape/gradients" )
# define INKSCAPE_KEYSDIR BR_DATADIR( "/inkscape/keys" )
#else
# ifdef WIN32
# define INKSCAPE_APPICONDIR "pixmaps"
+# define INKSCAPE_EXAMPLESDIR "share\\examples"
# define INKSCAPE_EXTENSIONDIR "share\\extensions"
# define INKSCAPE_GRADIENTSDIR "share\\gradients"
# define INKSCAPE_KEYSDIR "share\\keys"
# define CREATE_PATTERNSDIR INKSCAPE_DATADIR "create\\patterns\\vector"
# elif defined ENABLE_OSX_APP_LOCATIONS
# define INKSCAPE_APPICONDIR "Contents/Resources/pixmaps"
+# define INKSCAPE_EXAMPLESDIR "Contents/Resources/examples"
# define INKSCAPE_EXTENSIONDIR "Contents/Resources/extensions"
# define INKSCAPE_GRADIENTSDIR "Contents/Resources/gradients"
# define INKSCAPE_KEYSDIR "Contents/Resources/keys"
# define CREATE_PATTERNSDIR "/Library/Application Support/create/patterns/vector"
# else
# define INKSCAPE_APPICONDIR INKSCAPE_DATADIR "/pixmaps"
+# define INKSCAPE_EXAMPLESDIR INKSCAPE_DATADIR "/inkscape/examples"
# define INKSCAPE_EXTENSIONDIR INKSCAPE_DATADIR "/inkscape/extensions"
# define INKSCAPE_GRADIENTSDIR INKSCAPE_DATADIR "/inkscape/gradients"
# define INKSCAPE_KEYSDIR INKSCAPE_DATADIR "/inkscape/keys"