summaryrefslogtreecommitdiffstats
path: root/src/gui/GraphBox.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-01-04 05:47:01 +0000
committerDavid Robillard <d@drobilla.net>2014-01-04 05:47:01 +0000
commit0de05c0153240ba0a420233f56defbca9cfbb001 (patch)
tree970143018ec185341fedd7151df8224364dbd326 /src/gui/GraphBox.cpp
parent39fd0894a1402f23ce4b5243ec595764aa11625c (diff)
downloadingen-0de05c0153240ba0a420233f56defbca9cfbb001.tar.gz
ingen-0de05c0153240ba0a420233f56defbca9cfbb001.tar.bz2
ingen-0de05c0153240ba0a420233f56defbca9cfbb001.zip
Set documentation pane position to maximum to hide in LV2 GUI.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5257 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/GraphBox.cpp')
-rw-r--r--src/gui/GraphBox.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/GraphBox.cpp b/src/gui/GraphBox.cpp
index 68756a4b..1e1669cb 100644
--- a/src/gui/GraphBox.cpp
+++ b/src/gui/GraphBox.cpp
@@ -285,6 +285,9 @@ GraphBox::set_graph(SPtr<const GraphModel> graph,
_menu_show_port_names->set_active(
_app->world()->conf().option("port-labels").get<int32_t>());
+ _doc_paned->set_position(std::numeric_limits<int>::max());
+ _doc_scrolledwindow->hide();
+
_enable_signal = true;
}
@@ -316,6 +319,10 @@ void
GraphBox::set_documentation(const std::string& doc, bool html)
{
_doc_scrolledwindow->remove();
+ if (doc.empty()) {
+ _doc_scrolledwindow->hide();
+ return;
+ }
#ifdef HAVE_WEBKIT
WebKitWebView* view = WEBKIT_WEB_VIEW(webkit_web_view_new());
webkit_web_view_load_html_string(view, doc.c_str(), "");