diff options
author | David Robillard <d@drobilla.net> | 2013-01-09 03:05:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-09 03:05:13 +0000 |
commit | 67067320cb53f3c84bb7901e446f3d1798667e57 (patch) | |
tree | efaf94976fbef5f7ed9843bcd8056ee3289167ea /src/gui | |
parent | 19b6f2d1c1e8ddcc52b45b4a2c17d4f0317ceabc (diff) | |
download | ingen-67067320cb53f3c84bb7901e446f3d1798667e57.tar.gz ingen-67067320cb53f3c84bb7901e446f3d1798667e57.tar.bz2 ingen-67067320cb53f3c84bb7901e446f3d1798667e57.zip |
Load internal plugin data files and rework documentation code to work the same as LV2 plugins (fix #671).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4910 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/GraphBox.cpp | 1 | ||||
-rw-r--r-- | src/gui/NodeModule.cpp | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/GraphBox.cpp b/src/gui/GraphBox.cpp index 17631794..ef3b3c8c 100644 --- a/src/gui/GraphBox.cpp +++ b/src/gui/GraphBox.cpp @@ -325,6 +325,7 @@ GraphBox::set_documentation(const std::string& doc, bool html) #else Gtk::TextView* view = Gtk::manage(new Gtk::TextView()); view->get_buffer()->set_text(doc); + view->set_wrap_mode(Gtk::WRAP_WORD); _doc_scrolledwindow->add(*view); view->show(); #endif diff --git a/src/gui/NodeModule.cpp b/src/gui/NodeModule.cpp index 5542bef6..1409368e 100644 --- a/src/gui/NodeModule.cpp +++ b/src/gui/NodeModule.cpp @@ -41,6 +41,7 @@ #include "SubgraphModule.hpp" #include "WidgetFactory.hpp" #include "WindowFactory.hpp" +#include "ingen_config.h" using namespace std; @@ -441,9 +442,12 @@ NodeModule::on_selected(gboolean selected) if (selected && win->documentation_is_visible()) { GraphWindow* win = app().window_factory()->parent_graph_window(block()); std::string doc; - bool html = false; + bool html = false; +#ifdef HAVE_WEBKIT + html = true; +#endif if (block()->plugin_model()) { - doc = block()->plugin_model()->documentation(&html); + doc = block()->plugin_model()->documentation(html); } win->set_documentation(doc, html); } |