From 981c7950a6f5fc9f22decaee261556d20b641d5c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 13 May 2011 01:22:29 +0000 Subject: Make signals private with accessors, and localise dependency on sigc::signal. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3258 a436a847-0d15-0410-975c-d299462d15a1 --- src/gui/PatchTreeWindow.cpp | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/gui/PatchTreeWindow.cpp') diff --git a/src/gui/PatchTreeWindow.cpp b/src/gui/PatchTreeWindow.cpp index adb41a13..f4fb69b6 100644 --- a/src/gui/PatchTreeWindow.cpp +++ b/src/gui/PatchTreeWindow.cpp @@ -70,7 +70,8 @@ PatchTreeWindow::PatchTreeWindow(BaseObjectType* cobject, void PatchTreeWindow::init(ClientStore& store) { - store.signal_new_object.connect(sigc::mem_fun(this, &PatchTreeWindow::new_object)); + store.signal_new_object().connect( + sigc::mem_fun(this, &PatchTreeWindow::new_object)); } void @@ -109,17 +110,17 @@ PatchTreeWindow::add_patch(SharedPtr pm) } } - pm->signal_property.connect(sigc::bind( - sigc::mem_fun(this, &PatchTreeWindow::patch_property_changed), - pm)); + pm->signal_property().connect( + sigc::bind(sigc::mem_fun(this, &PatchTreeWindow::patch_property_changed), + pm)); - pm->signal_moved.connect(sigc::bind( - sigc::mem_fun(this, &PatchTreeWindow::patch_moved), - pm)); + pm->signal_moved().connect( + sigc::bind(sigc::mem_fun(this, &PatchTreeWindow::patch_moved), + pm)); - pm->signal_destroyed.connect(sigc::bind( - sigc::mem_fun(this, &PatchTreeWindow::remove_patch), - pm)); + pm->signal_destroyed().connect( + sigc::bind(sigc::mem_fun(this, &PatchTreeWindow::remove_patch), + pm)); } void -- cgit v1.2.1