diff options
author | David Robillard <d@drobilla.net> | 2015-03-28 09:47:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-28 09:47:19 +0000 |
commit | c0da1cf368b7d43c9c886b81768b4a62a07fae3f (patch) | |
tree | 83b651a2b680e32b990dd1e1909156aee475a181 /src/gui/Port.cpp | |
parent | d0b4376df39e95cb9389f5c42fc1c2333e8c0c97 (diff) | |
download | ingen-c0da1cf368b7d43c9c886b81768b4a62a07fae3f.tar.gz ingen-c0da1cf368b7d43c9c886b81768b4a62a07fae3f.tar.bz2 ingen-c0da1cf368b7d43c9c886b81768b4a62a07fae3f.zip |
Unify value widgets in properties dialog.
This shows the fancy URI selector for URI properties, and can show
numeric controls for the property-to-add. The ontologies need some
work, along with smarter widget creation, before the latter will
actually be useful.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5648 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r-- | src/gui/Port.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp index 8076eb60..e7f32fbe 100644 --- a/src/gui/Port.cpp +++ b/src/gui/Port.cpp @@ -284,14 +284,14 @@ Port::build_uri_menu() // Add a menu item for each such class for (const auto& v : values) { - if (!v.second.empty()) { - Glib::ustring label = world->rdf_world()->prefixes().qualify(v.first) - + " - " + v.second; + if (!v.first.empty()) { + const std::string qname = world->rdf_world()->prefixes().qualify(v.second); + const std::string label = qname + " - " + v.first; menu->items().push_back(Gtk::Menu_Helpers::MenuElem(label)); Gtk::MenuItem* menu_item = &(menu->items().back()); menu_item->signal_activate().connect( sigc::bind(sigc::mem_fun(this, &Port::on_uri_activated), - v.first)); + v.second)); } } |