mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
Move 'poor_mans_glob()' into libpbd
This commit is contained in:
parent
e525b169f2
commit
523f703b3b
6 changed files with 14 additions and 21 deletions
|
|
@ -41,13 +41,6 @@ using namespace Gtk;
|
|||
using namespace Gtkmm2ext;
|
||||
using namespace ARDOUR;
|
||||
|
||||
static string poor_mans_glob (string path)
|
||||
{
|
||||
string copy = path;
|
||||
replace_all (copy, "~", Glib::get_home_dir());
|
||||
return copy;
|
||||
}
|
||||
|
||||
void
|
||||
OptionEditorComponent::add_widget_to_page (OptionEditorPage* p, Gtk::Widget* w)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -57,13 +57,6 @@ using namespace PBD;
|
|||
using namespace ARDOUR;
|
||||
using namespace ARDOUR_UI_UTILS;
|
||||
|
||||
static string poor_mans_glob (string path)
|
||||
{
|
||||
string copy = path;
|
||||
replace_all (copy, "~", Glib::get_home_dir());
|
||||
return copy;
|
||||
}
|
||||
|
||||
SessionDialog::SessionDialog (bool require_new, const std::string& session_name, const std::string& session_path, const std::string& template_name, bool cancel_not_quit)
|
||||
: ArdourDialog (_("Session Setup"), true, true)
|
||||
, new_only (require_new)
|
||||
|
|
|
|||
|
|
@ -60,13 +60,6 @@ using namespace ARDOUR_UI_UTILS;
|
|||
|
||||
ArdourStartup* ArdourStartup::the_startup = 0;
|
||||
|
||||
static string poor_mans_glob (string path)
|
||||
{
|
||||
string copy = path;
|
||||
replace_all (copy, "~", Glib::get_home_dir());
|
||||
return copy;
|
||||
}
|
||||
|
||||
ArdourStartup::ArdourStartup ()
|
||||
: _response (RESPONSE_OK)
|
||||
, config_modified (false)
|
||||
|
|
|
|||
|
|
@ -752,6 +752,10 @@
|
|||
RelativePath="..\pbd\receiver.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\pbd\replace_all.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\pbd\resource.h"
|
||||
>
|
||||
|
|
|
|||
|
|
@ -25,5 +25,6 @@
|
|||
#include "pbd/libpbd_visibility.h"
|
||||
|
||||
LIBPBD_API int replace_all (std::string& str, const std::string& target, const std::string& replacement);
|
||||
LIBPBD_API std::string poor_mans_glob (std::string path);
|
||||
|
||||
#endif // __pbd_replace_all_h__
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
#include "pbd/replace_all.h"
|
||||
#include "glibmm/miscutils.h"
|
||||
|
||||
int
|
||||
replace_all (std::string& str,
|
||||
|
|
@ -36,3 +37,11 @@ replace_all (std::string& str,
|
|||
return cnt;
|
||||
}
|
||||
|
||||
std::string
|
||||
poor_mans_glob (std::string path)
|
||||
{
|
||||
std::string copy = path;
|
||||
replace_all (copy, "~", Glib::get_home_dir());
|
||||
return copy;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue