Re: [Ubuntu-phone] [Scopes] Responding to preview actions

2014-11-11 Thread Robert Schroll
Finally got a chance to try this, and it works like a charm. Thanks! Robert On Mon, Nov 10, 2014 at 8:27 AM, Pawel Stolowski wrote: Ah, correction, I totally forgot about canned queries; you can use them to do what you want (if I got your idea right): just use a canned query (see CannedQuery

Re: [Ubuntu-phone] [Scopes] Responding to preview actions

2014-11-10 Thread Pawel Stolowski
Ah, correction, I totally forgot about canned queries; you can use them to do what you want (if I got your idea right): just use a canned query (see CannedQuery::to_uri()) as an uri of your result and that should fire off your new query when you activate the result. Pawel On 10.11.2014 10:06

Re: [Ubuntu-phone] [Scopes] Responding to preview actions

2014-11-10 Thread Pawel Stolowski
Hi Robert, n 07.11.2014 20:37, Robert Schroll wrote: On Fri, Nov 7, 2014 at 1:08 PM, Pawel Stolowski wrote: I think you're experiencing https://bugs.launchpad.net/ubuntu/+source/unity-scopes-shell/+bug/1335761 That'd seem to be the problem. Good to know it's not my fault for once. One more

Re: [Ubuntu-phone] [Scopes] Responding to preview actions

2014-11-07 Thread Robert Schroll
On Fri, Nov 7, 2014 at 1:08 PM, Pawel Stolowski wrote: I think you're experiencing https://bugs.launchpad.net/ubuntu/+source/unity-scopes-shell/+bug/1335761 That'd seem to be the problem. Good to know it's not my fault for once. One more question on this subject: Is it possible to intercept

Re: [Ubuntu-phone] [Scopes] Responding to preview actions

2014-11-07 Thread Robert Schroll
On Fri, Nov 7, 2014 at 1:53 AM, Michi Henning wrote: You set the "uri" attribute with builder.add_tuple(). That tells the shell that you want that uri to be activated when the button is pressed. Don't set the "uri" attribute, and your activate() method is called as expected. Aha! I had forg

Re: [Ubuntu-phone] [Scopes] Responding to preview actions

2014-11-07 Thread Pawel Stolowski
Hey, I think you're experiencing https://bugs.launchpad.net/ubuntu/+source/unity-scopes-shell/+bug/1335761 Cheers, Pawel On 07.11.2014 19:02, Robert Schroll wrote: On Fri, Nov 7, 2014 at 1:53 AM, Michi Henning wrote: You set the "uri" attribute with builder.add_tuple(). That tells the she

Re: [Ubuntu-phone] [Scopes] Responding to preview actions

2014-11-06 Thread Michi Henning
On 7 Nov 2014, at 5:52 , Robert Schroll wrote: > Hi all, > > I'm trying to understand how to have a scope respond to the user's activation > of a preview action, by running a new query for example. This only > documentation I've seem on it is in the API docs, and that's not entirely > clear

[Ubuntu-phone] [Scopes] Responding to preview actions

2014-11-06 Thread Robert Schroll
Hi all, I'm trying to understand how to have a scope respond to the user's activation of a preview action, by running a new query for example. This only documentation I've seem on it is in the API docs, and that's not entirely clear. I don't understand the difference between ScopeBase::perf