summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/PatchCanvas.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-09-14 01:47:44 +0000
committerDavid Robillard <d@drobilla.net>2007-09-14 01:47:44 +0000
commit9e385c8b60e10f5bb202cb5eb7d7aead8a90fe18 (patch)
tree18636e5a28959281fe64b73b39f4604f392f47e2 /src/libs/gui/PatchCanvas.cpp
parentc168f4c26d8244aaaaa73548a312c77ab4064da1 (diff)
downloadingen-9e385c8b60e10f5bb202cb5eb7d7aead8a90fe18.tar.gz
ingen-9e385c8b60e10f5bb202cb5eb7d7aead8a90fe18.tar.bz2
ingen-9e385c8b60e10f5bb202cb5eb7d7aead8a90fe18.zip
Remove useless 'controls' items from canvas context menu.
git-svn-id: http://svn.drobilla.net/lad/ingen@705 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/gui/PatchCanvas.cpp')
-rw-r--r--src/libs/gui/PatchCanvas.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/gui/PatchCanvas.cpp b/src/libs/gui/PatchCanvas.cpp
index 3f2423c0..252e0984 100644
--- a/src/libs/gui/PatchCanvas.cpp
+++ b/src/libs/gui/PatchCanvas.cpp
@@ -57,8 +57,8 @@ PatchCanvas::PatchCanvas(SharedPtr<PatchModel> patch, int width, int height)
Glib::RefPtr<Gnome::Glade::Xml> xml = GladeFactory::new_glade_reference();
xml->get_widget("canvas_menu", _menu);
- xml->get_widget("canvas_menu_add_number_control", _menu_add_number_control);
- xml->get_widget("canvas_menu_add_button_control", _menu_add_button_control);
+ /*xml->get_widget("canvas_menu_add_number_control", _menu_add_number_control);
+ xml->get_widget("canvas_menu_add_button_control", _menu_add_button_control);*/
xml->get_widget("canvas_menu_add_audio_input", _menu_add_audio_input);
xml->get_widget("canvas_menu_add_audio_output", _menu_add_audio_output);
xml->get_widget("canvas_menu_add_control_input", _menu_add_control_input);
@@ -98,10 +98,10 @@ PatchCanvas::PatchCanvas(SharedPtr<PatchModel> patch, int width, int height)
"osc_output", "ingen:osc", true));
// Add control menu items
- _menu_add_number_control->signal_activate().connect(
+ /*_menu_add_number_control->signal_activate().connect(
sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_control), NUMBER));
_menu_add_button_control->signal_activate().connect(
- sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_control), BUTTON));
+ sigc::bind(sigc::mem_fun(this, &PatchCanvas::menu_add_control), BUTTON));*/
#ifdef HAVE_SLV2
build_plugin_menu();
@@ -176,7 +176,7 @@ PatchCanvas::build_plugin_menu()
Gtk::MenuItem* plugin_menu_item = &(_menu->items().back());
Gtk::Menu* plugin_menu = Gtk::manage(new Gtk::Menu());
plugin_menu_item->set_submenu(*plugin_menu);
- _menu->reorder_child(*plugin_menu_item, 3);
+ _menu->reorder_child(*plugin_menu_item, 2);
SLV2PluginClass lv2_plugin = slv2_world_get_plugin_class(PluginModel::slv2_world());
SLV2PluginClasses classes = slv2_world_get_plugin_classes(PluginModel::slv2_world());