summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-27 05:38:18 +0000
committerDavid Robillard <d@drobilla.net>2012-03-27 05:38:18 +0000
commit8480511a85d877d83239fbcaa9eb3f03c4375dff (patch)
tree4282fc70886e3736c09ff8d58e35d8177cac3c09
parentf888ae54a7ad5f2ab274573651ee09c3fa6daa8a (diff)
downloadingen-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.cpp12
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 {