From 67067320cb53f3c84bb7901e446f3d1798667e57 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 9 Jan 2013 03:05:13 +0000 Subject: 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 --- src/gui/GraphBox.cpp | 1 + src/gui/NodeModule.cpp | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gui') 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); } -- cgit v1.2.1