From 228279d6717e69ffd2d2a886244179635ac27c2b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 11 Jun 2006 03:17:16 +0000 Subject: Got store working directly through SigClientInterface git-svn-id: http://svn.drobilla.net/lad/grauph@22 a436a847-0d15-0410-975c-d299462d15a1 --- src/progs/gtk/BreadCrumb.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'src/progs/gtk/BreadCrumb.h') 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 -- cgit v1.2.1