Re: Middle click paste in St.Entry

2014-07-09 Thread Emmanuele Bassi
I did: you should create a new event that has the correct source actor *or* add internal API to submit the keys to the search entry. ciao, Emmanuele. On 8 July 2014 18:40, Jasper St. Pierre wrote: > > > > On Tue, Jul 8, 2014 at 1:34 PM, Emmanuele Bassi wrote: >> >> except that the source actor

Re: Middle click paste in St.Entry

2014-07-08 Thread Sam Bull
On mar, 2014-07-08 at 18:47 +0200, Florian Müllner wrote: > Not very pretty, but something like this should work: > > this._box.connect('button-press-event', function (actor, event) { > clutterText.event(event, false); > }); That works, thanks. The user also says th

Re: Middle click paste in St.Entry

2014-07-08 Thread Jasper St. Pierre
On Tue, Jul 8, 2014 at 1:34 PM, Emmanuele Bassi wrote: > except that the source actor in the event will be wrong, and if I > added a check for that inside clutter_actor_event() (something which > would make sense for me to add) then you'd get a warning and the event > would be rejected. > > you'd

Re: Middle click paste in St.Entry

2014-07-08 Thread Emmanuele Bassi
except that the source actor in the event will be wrong, and if I added a check for that inside clutter_actor_event() (something which would make sense for me to add) then you'd get a warning and the event would be rejected. you'd have to synthesize a new event from the one passed, though to be fa

Re: Middle click paste in St.Entry

2014-07-08 Thread Florian Müllner
On Tue, Jul 8, 2014 at 6:31 PM, Sam Bull wrote: > Ah, that makes sense. Is there any way that might be fixed? When > clicking anywhere else on the note, the code is simply: > > this._box.connect('button-press-event', function () { > clutterText.grab_key_focus(); > }); >

Re: Middle click paste in St.Entry

2014-07-08 Thread Sam Bull
On mar, 2014-07-08 at 17:48 +0200, Florian Müllner wrote: > On Tue, Jul 8, 2014 at 5:33 PM, Sam Bull wrote: > > They have confirmed that they can middle-click paste into the search box > > at the top of the overlay, but not into the notes of my extension. > > Works here if I middle-click one of t

Re: Middle click paste in St.Entry

2014-07-08 Thread Florian Müllner
On Tue, Jul 8, 2014 at 5:33 PM, Sam Bull wrote: > They have confirmed that they can middle-click paste into the search box > at the top of the overlay, but not into the notes of my extension. Works here if I middle-click one of the entries inside the note (rather than the note itself) ... ___

Re: Middle click paste in St.Entry

2014-07-08 Thread Sam Bull
On mar, 2014-07-08 at 16:53 +0200, Florian Müllner wrote: > > It seems that it's impossible to middle click paste in my extension; is > > this a toolkit limitation, or have I done something wrong? > > St follows GTK+'s Gtk/EnablePrimaryPaste XSetting - does it work if you run > > gsettings set

Re: Middle click paste in St.Entry

2014-07-08 Thread Florian Müllner
On Tue, Jul 8, 2014 at 2:43 PM, Sam Bull wrote: > Is it possible to have middle click paste in an St.Entry instance? Yes, middle click paste has been implemented since 3.8. > It seems that it's impossible to middle click paste in my extension; is > this a toolkit limitation, or have I done some

Middle click paste in St.Entry

2014-07-08 Thread Sam Bull
Is it possible to have middle click paste in an St.Entry instance? It seems that it's impossible to middle click paste in my extension; is this a toolkit limitation, or have I done something wrong? signature.asc Description: This is a digitally signed message part