Handle PERFORM_SEARCH activation reply (canned query).
commita755a5456f1e2c596ff1a5d3714e105e3279e271
authorPawel Stolowski <pawel.stolowski@canonical.com>
dateThu 19 Sep 2013, 17:28 (13 years ago)
parent9cc9b74
plugins/Unity/scope.cpp+5
@@ -199,6 +199,11 @@ void Scope::onActivated(unity::dash::LocalResult const& result, unity::dash::Sco
199199 qWarning() << "Missing goto-uri hint for GOTO_DASH_URI activation reply";
200200 }
201201 break;
202+ case unity::dash::PERFORM_SEARCH:
203+ if (hints.find("query") != hints.end()) {
204+ setSearchQuery(QString::fromStdString(g_variant_get_string(hints.at("query"), nullptr)));
205+ }
206+ break;
202207 default:
203208 qWarning() << "Unhandled activation response:" << type;
204209 }