diff options
author | David Robillard <d@drobilla.net> | 2006-06-11 03:17:16 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-06-11 03:17:16 +0000 |
commit | 228279d6717e69ffd2d2a886244179635ac27c2b (patch) | |
tree | d8a25007daeda686f07aefc8b5fcc9486040c536 /src/progs/gtk/BreadCrumb.h | |
parent | 9a3d8d0604a2f81e3514e8a1a30aaf41aadf73a2 (diff) | |
download | ingen-228279d6717e69ffd2d2a886244179635ac27c2b.tar.gz ingen-228279d6717e69ffd2d2a886244179635ac27c2b.tar.bz2 ingen-228279d6717e69ffd2d2a886244179635ac27c2b.zip |
Got store working directly through SigClientInterface
git-svn-id: http://svn.drobilla.net/lad/grauph@22 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/progs/gtk/BreadCrumb.h')
-rw-r--r-- | src/progs/gtk/BreadCrumb.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/progs/gtk/BreadCrumb.h b/src/progs/gtk/BreadCrumb.h index f79ad363..bbb8ee5c 100644 --- a/src/progs/gtk/BreadCrumb.h +++ b/src/progs/gtk/BreadCrumb.h @@ -32,21 +32,20 @@ namespace OmGtk { class BreadCrumb : public Gtk::ToggleButton { public: - BreadCrumb(PatchWindow* window, PatchController* patch) - : m_window(window), - m_patch(patch) + BreadCrumb(PatchWindow* window, const Path& path) + : m_window(window) + , m_path(path) { - assert(patch != NULL); set_border_width(0); - path(m_patch->path()); + set_path(path); signal_clicked().connect(sigc::bind(sigc::mem_fun( m_window, &PatchWindow::breadcrumb_clicked), this)); show_all(); } - PatchController* patch() { return m_patch; } + //PatchController* patch() { return m_patch; } - void path(const Path& path) + void set_path(const Path& path) { remove(); const string text = (path == "/") ? "/" : path.name(); @@ -55,10 +54,13 @@ public: lab->show(); add(*lab); } + + Path& path() { return m_path; } private: PatchWindow* m_window; - PatchController* m_patch; + Path m_path; + //PatchController* m_patch; }; } // namespace OmGtk |