diff options
author | David Robillard <d@drobilla.net> | 2011-10-01 16:03:15 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2011-10-01 16:03:15 +0000 |
commit | 625e1c0c58931caec50cdbe5be80312550be4991 (patch) | |
tree | 0152f952460655802f9305319ef384c52ce6ec42 | |
parent | 77c9f5d809c29219ce53ae9531e5fcae1705485b (diff) | |
download | ingen-625e1c0c58931caec50cdbe5be80312550be4991.tar.gz ingen-625e1c0c58931caec50cdbe5be80312550be4991.tar.bz2 ingen-625e1c0c58931caec50cdbe5be80312550be4991.zip |
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3519 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/gui/PatchWindow.cpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/gui/PatchWindow.cpp b/src/gui/PatchWindow.cpp index 2fff6f81..bab06da8 100644 --- a/src/gui/PatchWindow.cpp +++ b/src/gui/PatchWindow.cpp @@ -56,8 +56,8 @@ namespace Ingen { namespace GUI { static const int STATUS_CONTEXT_ENGINE = 0; -static const int STATUS_CONTEXT_PATCH = 1; -static const int STATUS_CONTEXT_HOVER = 2; +static const int STATUS_CONTEXT_PATCH = 1; +static const int STATUS_CONTEXT_HOVER = 2; PatchWindow::PatchWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& xml) @@ -173,21 +173,20 @@ PatchWindow::PatchWindow(BaseObjectType* cobject, sigc::mem_fun(App::instance(), &App::show_about))); _breadcrumbs = new BreadCrumbs(); - _breadcrumbs->signal_patch_selected.connect(sigc::mem_fun(this, &PatchWindow::set_patch_from_path)); + _breadcrumbs->signal_patch_selected.connect( + sigc::mem_fun(this, &PatchWindow::set_patch_from_path)); #ifndef HAVE_CURL _menu_upload->hide(); #endif Glib::RefPtr<Gtk::Clipboard> clipboard = Gtk::Clipboard::get(); - clipboard->signal_owner_change().connect(sigc::mem_fun(this, &PatchWindow::event_clipboard_changed)); + clipboard->signal_owner_change().connect( + sigc::mem_fun(this, &PatchWindow::event_clipboard_changed)); } PatchWindow::~PatchWindow() { - // Prevents deletion - //m_patch->claim_patch_view(); - delete _breadcrumbs; } @@ -278,8 +277,10 @@ PatchWindow::set_patch(SharedPtr<const PatchModel> patch, show(); _alignment->show_all(); - _view->signal_object_entered.connect(sigc::mem_fun(this, &PatchWindow::object_entered)); - _view->signal_object_left.connect(sigc::mem_fun(this, &PatchWindow::object_left)); + _view->signal_object_entered.connect( + sigc::mem_fun(this, &PatchWindow::object_entered)); + _view->signal_object_left.connect( + sigc::mem_fun(this, &PatchWindow::object_left)); _enable_signal = true; } |