projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing include
[ardour.git]
/
gtk2_ardour
/
editor_component.cc
diff --git
a/gtk2_ardour/editor_component.cc
b/gtk2_ardour/editor_component.cc
index e78f7804f1b413087c8c072dc9cc21b1979f9b51..e016f5bb5050f255c6fcdcd51112b028bcd6be04 100644
(file)
--- a/
gtk2_ardour/editor_component.cc
+++ b/
gtk2_ardour/editor_component.cc
@@
-1,5
+1,5
@@
/*
/*
- Copyright (C) 2009 Paul Davis
+ Copyright (C) 2009 Paul Davis
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,34
+17,10
@@
*/
*/
-#include "ardour/session.h"
#include "editor_component.h"
#include "editor_component.h"
-using namespace std;
-using namespace sigc;
-using namespace ARDOUR;
-
EditorComponent::EditorComponent (Editor* e)
EditorComponent::EditorComponent (Editor* e)
- : _editor (e),
- _session (0)
-{
-
-}
-
-void
-EditorComponent::connect_to_session (Session* s)
+ : _editor (e)
{
{
- _session = s;
-
- _session_connections.push_back (_session->GoingAway.connect (mem_fun (*this, &EditorComponent::session_going_away)));
}
}
-void
-EditorComponent::session_going_away ()
-{
- for (list<connection>::iterator i = _session_connections.begin(); i != _session_connections.end(); ++i) {
- i->disconnect ();
- }
-
- _session = 0;
-}