#include <gtkmm2ext/selector.h>
#include <gtkmm2ext/gtk_ui.h>
-#include "ardour/session.h"
-#include "ardour/utils.h"
-
#include "public_editor.h"
#include "ardour_ui.h"
#include "gui_object.h"
using namespace Gtk;
using namespace Gtkmm2ext;
using namespace ARDOUR;
+using namespace ARDOUR_UI_UTILS;
list<Gdk::Color> AxisView::used_colors;
string
AxisView::gui_property (const string& property_name) const
{
- return gui_object_state().get_string (state_id(), property_name);
+ if (property_hashtable.count(property_name)) {
+ return property_hashtable[property_name];
+ } else {
+ string rv = gui_object_state().get_string (state_id(), property_name);
+ property_hashtable.erase(property_name);
+ property_hashtable.emplace(property_name, rv);
+ return rv;
+ }
}
bool
set_gui_property ("visible", yn);
return true; // things changed
}
-
return false;
}