summaryrefslogtreecommitdiffstats
path: root/src/gui/App.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/App.cpp')
-rw-r--r--src/gui/App.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/App.cpp b/src/gui/App.cpp
index 1bb9ba4d..65f5c90a 100644
--- a/src/gui/App.cpp
+++ b/src/gui/App.cpp
@@ -44,6 +44,7 @@
#include "MessagesWindow.hpp"
#include "NodeModule.hpp"
#include "Port.hpp"
+#include "RDFS.hpp"
#include "Style.hpp"
#include "SubgraphModule.hpp"
#include "ThreadedLoader.hpp"
@@ -236,6 +237,15 @@ App::set_property(const Raul::URI& subject,
}
void
+App::set_tooltip(Gtk::Widget* widget, const LilvNode* node)
+{
+ const std::string comment = RDFS::comment(_world, node);
+ if (!comment.empty()) {
+ widget->set_tooltip_text(comment);
+ }
+}
+
+void
App::property_change(const Raul::URI& subject,
const Raul::URI& key,
const Atom& value)