diff options
author | David Robillard <d@drobilla.net> | 2012-03-27 05:38:18 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-03-27 05:38:18 +0000 |
commit | 8480511a85d877d83239fbcaa9eb3f03c4375dff (patch) | |
tree | 4282fc70886e3736c09ff8d58e35d8177cac3c09 | |
parent | f888ae54a7ad5f2ab274573651ee09c3fa6daa8a (diff) | |
download | ingen-8480511a85d877d83239fbcaa9eb3f03c4375dff.tar.gz ingen-8480511a85d877d83239fbcaa9eb3f03c4375dff.tar.bz2 ingen-8480511a85d877d83239fbcaa9eb3f03c4375dff.zip |
Tidy.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4116 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | src/gui/PatchCanvas.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gui/PatchCanvas.cpp b/src/gui/PatchCanvas.cpp index 9837c0a2..dc5c8a49 100644 --- a/src/gui/PatchCanvas.cpp +++ b/src/gui/PatchCanvas.cpp @@ -355,8 +355,10 @@ PatchCanvas::add_plugin(SharedPtr<PluginModel> p) { typedef ClassMenus::iterator iterator; if (_internal_menu && p->type() == Plugin::Internal) { - _internal_menu->items().push_back(Gtk::Menu_Helpers::MenuElem(p->human_name(), - sigc::bind(sigc::mem_fun(this, &PatchCanvas::load_plugin), p))); + _internal_menu->items().push_back( + Gtk::Menu_Helpers::MenuElem( + p->human_name(), + sigc::bind(sigc::mem_fun(this, &PatchCanvas::load_plugin), p))); } else if (_plugin_menu && p->type() == Plugin::LV2 && p->lilv_plugin()) { if (lilv_plugin_is_replaced(p->lilv_plugin())) { //info << (boost::format("[Menu] LV2 plugin <%s> hidden") % p->uri()) << endl; @@ -373,8 +375,10 @@ PatchCanvas::add_plugin(SharedPtr<PluginModel> p) pair<iterator,iterator> range = _class_menus.equal_range(class_uri_str); if (range.first == _class_menus.end() || range.first == range.second || range.first->second.menu == _plugin_menu) { - _classless_menu->items().push_back(Gtk::Menu_Helpers::MenuElem(p->human_name(), - sigc::bind(sigc::mem_fun(this, &PatchCanvas::load_plugin), p))); + _classless_menu->items().push_back( + Gtk::Menu_Helpers::MenuElem( + p->human_name(), + sigc::bind(sigc::mem_fun(this, &PatchCanvas::load_plugin), p))); if (!_classless_menu->is_visible()) _classless_menu->show(); } else { |