diff options
author | David Robillard <d@drobilla.net> | 2011-05-25 00:32:23 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-05-25 00:32:23 +0000 |
commit | d6bd53fe5ca146398e9c3547b6cd9a06cf56d90f (patch) | |
tree | abc77893f16cb66cce1fd66afc0f8e77bdbbc40a /src/gui/PatchWindow.cpp | |
parent | 1b29d7799c32b7be8bc563d2b21349115be04e6e (diff) | |
download | ingen-d6bd53fe5ca146398e9c3547b6cd9a06cf56d90f.tar.gz ingen-d6bd53fe5ca146398e9c3547b6cd9a06cf56d90f.tar.bz2 ingen-d6bd53fe5ca146398e9c3547b6cd9a06cf56d90f.zip |
Move sanitised serialisation headers to public include directory
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3320 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/PatchWindow.cpp')
-rw-r--r-- | src/gui/PatchWindow.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp index 657d2874..b06c3fb5 100644 --- a/src/gui/PatchWindow.cpp +++ b/src/gui/PatchWindow.cpp @@ -26,7 +26,6 @@ #include "shared/LV2URIMap.hpp" #include "ingen/client/PatchModel.hpp" #include "ingen/client/ClientStore.hpp" -#include "serialisation/names.hpp" #include "App.hpp" #include "PatchCanvas.hpp" #include "LoadPluginWindow.hpp" @@ -425,7 +424,7 @@ PatchWindow::event_save_as() save_button->property_has_default() = true; Gtk::FileFilter filt; - filt.add_pattern("*" INGEN_BUNDLE_EXT); + filt.add_pattern("*.ingen"); filt.set_name("Ingen bundles"); dialog.set_filter(filt); @@ -443,11 +442,11 @@ PatchWindow::event_save_as() std::string basename = Glib::path_get_basename(filename); if (basename.find('.') == string::npos) { - filename += INGEN_BUNDLE_EXT; - basename += INGEN_BUNDLE_EXT; - } else if (filename.substr(filename.length() - 10) != INGEN_BUNDLE_EXT) { + filename += ".ingen"; + basename += ".ingen"; + } else if (filename.substr(filename.length() - 10) != ".ingen") { Gtk::MessageDialog error_dialog(*this, -"<b>" "Ingen patches must be saved to Ingen bundles (*" INGEN_BUNDLE_EXT ")." "</b>", +"<b>" "Ingen patches must be saved to Ingen bundles (*.ingen)." "</b>", true, Gtk::MESSAGE_ERROR, Gtk::BUTTONS_OK, true); error_dialog.run(); continue; |