diff options
author | David Robillard <d@drobilla.net> | 2015-04-05 23:10:42 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-04-05 23:10:42 +0000 |
commit | 85a945468c6b065ee43ce1dc2f6e4c03eb9fe3c3 (patch) | |
tree | c8aa67df530bebc00c20bac738a0a2e1c3e770a2 /src/gui/GraphBox.cpp | |
parent | 1d01e09da3d45af72c04b007bccd240ec16fbe36 (diff) | |
download | ingen-85a945468c6b065ee43ce1dc2f6e4c03eb9fe3c3.tar.gz ingen-85a945468c6b065ee43ce1dc2f6e4c03eb9fe3c3.tar.bz2 ingen-85a945468c6b065ee43ce1dc2f6e4c03eb9fe3c3.zip |
Hide close/quit menu items in plugin GUI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5669 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/GraphBox.cpp')
-rw-r--r-- | src/gui/GraphBox.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/GraphBox.cpp b/src/gui/GraphBox.cpp index 693d0c04..2b84b16f 100644 --- a/src/gui/GraphBox.cpp +++ b/src/gui/GraphBox.cpp @@ -182,6 +182,12 @@ GraphBox::create(App& app, SPtr<const GraphModel> graph) xml->get_widget_derived("graph_win_vbox", result); result->init_box(app); result->set_graph(graph, SPtr<GraphView>()); + + if (app.is_plugin()) { + result->_menu_close->set_sensitive(false); + result->_menu_quit->set_sensitive(false); + } + return SPtr<GraphBox>(result); } |