diff options
| author | Joel Holdsworth <joel@airwebreathe.org.uk> | 2007-08-19 13:25:39 +0000 |
|---|---|---|
| committer | joelholdsworth <joelholdsworth@users.sourceforge.net> | 2007-08-19 13:25:39 +0000 |
| commit | a461a573cb34a09c846aff6d65f79b3ff45bf271 (patch) | |
| tree | c45372087207e4280891a84d8c7d01559534cefa /src/ui | |
| parent | * Fixed path-along-path with correct filling now! (2geom fix) (diff) | |
| download | inkscape-a461a573cb34a09c846aff6d65f79b3ff45bf271.tar.gz inkscape-a461a573cb34a09c846aff6d65f79b3ff45bf271.zip | |
Relocated the code that adds a link to the example folder inside from file.cpp to filedialogimpl-gtkmm.cpp
(bzr r3525)
Diffstat (limited to 'src/ui')
| -rw-r--r-- | src/ui/dialog/filedialogimpl-gtkmm.cpp | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/src/ui/dialog/filedialogimpl-gtkmm.cpp b/src/ui/dialog/filedialogimpl-gtkmm.cpp index d3016e0f3..0550b8021 100644 --- a/src/ui/dialog/filedialogimpl-gtkmm.cpp +++ b/src/ui/dialog/filedialogimpl-gtkmm.cpp @@ -22,6 +22,8 @@ #include "filedialogimpl-gtkmm.h"
#include "dialogs/dialog-events.h"
#include "interface.h"
+#include "io/sys.h"
+#include "path-prefix.h"
#ifdef WITH_GNOME_VFS
# include <libgnomevfs/gnome-vfs.h>
@@ -73,7 +75,8 @@ fileDialogExtensionToPattern(Glib::ustring &pattern, }
}
-
void
+
+void
findEntryWidgets(Gtk::Container *parent,
std::vector<Gtk::Entry *> &result)
{
@@ -711,9 +714,15 @@ FileOpenDialogImplGtk::FileOpenDialogImplGtk(Gtk::Window& parentWindow, //###### Add the file types menu
createFilterMenu();
-
add_button(Gtk::Stock::CANCEL, Gtk::RESPONSE_CANCEL);
set_default(*add_button(Gtk::Stock::OPEN, Gtk::RESPONSE_OK));
+
+ //###### Allow easy access to our examples folder
+ if(Inkscape::IO::file_test(INKSCAPE_EXAMPLESDIR,
+ (GFileTest)(G_FILE_TEST_EXISTS | G_FILE_TEST_IS_DIR)))
+ {
+ add_shortcut_folder(INKSCAPE_EXAMPLESDIR);
+ }
}
/**
@@ -1597,7 +1606,8 @@ FileExportDialogImpl::getFilename() {
return myFilename;
}
-
+
+
} //namespace Dialog
} //namespace UI
} //namespace Inkscape
|
