projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
insufficient attempt to drop references to a shadow MIDI port
[ardour.git]
/
gtk2_ardour
/
axis_view.cc
diff --git
a/gtk2_ardour/axis_view.cc
b/gtk2_ardour/axis_view.cc
index 5e36fc43c1e5a7bc04a4dcdeb38b0cf899c04eb1..016e57945f65d07e88384a1966c85a9a92736d71 100644
(file)
--- a/
gtk2_ardour/axis_view.cc
+++ b/
gtk2_ardour/axis_view.cc
@@
-37,7
+37,7
@@
#include "gui_object.h"
#include "axis_view.h"
#include "utils.h"
#include "gui_object.h"
#include "axis_view.h"
#include "utils.h"
-#include "i18n.h"
+#include "
pbd/
i18n.h"
using namespace std;
using namespace Gtk;
using namespace std;
using namespace Gtk;
@@
-47,10
+47,8
@@
using namespace ARDOUR_UI_UTILS;
list<Gdk::Color> AxisView::used_colors;
list<Gdk::Color> AxisView::used_colors;
-AxisView::AxisView (ARDOUR::Session* sess)
- : SessionHandlePtr (sess)
+AxisView::AxisView ()
{
{
- _selected = false;
}
AxisView::~AxisView()
}
AxisView::~AxisView()
@@
-95,7
+93,23
@@
AxisView::set_marked_for_display (bool yn)
}
GUIObjectState&
}
GUIObjectState&
-AxisView::gui_object_state()
+AxisView::gui_object_state()
{
return *ARDOUR_UI::instance()->gui_object_state;
}
{
return *ARDOUR_UI::instance()->gui_object_state;
}
+
+void
+AxisView::set_selected (bool yn)
+{
+ if (selected() == yn) {
+ return;
+ }
+
+ Selectable::set_selected (yn);
+
+ boost::shared_ptr<Stripable> s = stripable ();
+
+ if (s) {
+ s->presentation_info().set_selected (yn);
+ }
+}