mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
fix for #5224
git-svn-id: svn://localhost/ardour2/branches/3.0@13741 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
fe1796fd6f
commit
db36cb793a
4 changed files with 8 additions and 2 deletions
|
|
@ -714,7 +714,7 @@ ARDOUR_UI::float_big_clock (Gtk::Window* parent)
|
|||
}
|
||||
|
||||
void
|
||||
ARDOUR_UI::big_clock_size_allocate (Gtk::Allocation&)
|
||||
ARDOUR_UI::big_clock_size_allocate (Gtk::Allocation& a)
|
||||
{
|
||||
if (!big_clock_resize_in_progress) {
|
||||
Glib::signal_idle().connect (sigc::bind (sigc::mem_fun (*this, &ARDOUR_UI::idle_big_clock_text_resizer), 0, 0));
|
||||
|
|
|
|||
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
#include "pbd/strsplit.h"
|
||||
#include "pbd/compose.h"
|
||||
#include "pbd/shortpath.h"
|
||||
|
||||
#include "search_path_option.h"
|
||||
#include "i18n.h"
|
||||
|
||||
|
|
@ -25,6 +27,7 @@ using namespace std;
|
|||
using namespace Gtk;
|
||||
|
||||
SearchPathOption::SearchPathOption (const string& pathname, const string& label,
|
||||
const string& default_path,
|
||||
sigc::slot<std::string> get, sigc::slot<bool, std::string> set)
|
||||
: Option (pathname, label)
|
||||
, _get (get)
|
||||
|
|
@ -45,7 +48,7 @@ SearchPathOption::SearchPathOption (const string& pathname, const string& label,
|
|||
vbox.pack_end (*hbox);
|
||||
|
||||
session_label.set_use_markup (true);
|
||||
session_label.set_markup (string_compose ("<i>%1</i>", _("the session folder")));
|
||||
session_label.set_markup (string_compose ("<i>%1 (%2)</i>", _("the session folder"), short_path (default_path, 32)));
|
||||
session_label.set_alignment (0.0, 0.5);
|
||||
session_label.show ();
|
||||
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ class SearchPathOption : public Option
|
|||
{
|
||||
public:
|
||||
SearchPathOption (const std::string& pathname, const std::string& label,
|
||||
const std::string& default_path,
|
||||
sigc::slot<std::string>, sigc::slot<bool, std::string>);
|
||||
~SearchPathOption ();
|
||||
|
||||
|
|
|
|||
|
|
@ -200,11 +200,13 @@ SessionOptionEditor::SessionOptionEditor (Session* s)
|
|||
add_option (_("Media"), new OptionEditorHeading (_("File locations")));
|
||||
|
||||
SearchPathOption* spo = new SearchPathOption ("audio-search-path", _("Search for audio files in:"),
|
||||
_session->path(),
|
||||
sigc::mem_fun (*_session_config, &SessionConfiguration::get_audio_search_path),
|
||||
sigc::mem_fun (*_session_config, &SessionConfiguration::set_audio_search_path));
|
||||
add_option (_("Media"), spo);
|
||||
|
||||
spo = new SearchPathOption ("midi-search-path", _("Search for MIDI files in:"),
|
||||
_session->path(),
|
||||
sigc::mem_fun (*_session_config, &SessionConfiguration::get_midi_search_path),
|
||||
sigc::mem_fun (*_session_config, &SessionConfiguration::set_midi_search_path));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue