From 0de05c0153240ba0a420233f56defbca9cfbb001 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 4 Jan 2014 05:47:01 +0000 Subject: 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 --- src/gui/GraphBox.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src') 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 graph, _menu_show_port_names->set_active( _app->world()->conf().option("port-labels").get()); + _doc_paned->set_position(std::numeric_limits::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(), ""); -- cgit v1.2.1