On Fri, Oct 5, 2012 at 12:17 AM, Bazon Bloch <bazonbl...@arcor.de> wrote:
> Thank you, that was indeed the needed connect! :-)
>
> But I got two questions left concerning that:
> 2012/10/4 Amy <mathematical.cof...@gmail.com>(You can
>
>> enter the Overview & then open the looking glass and use the 'picker'
>> object to try and work out which actor you want to listen to events on
>> if you didn't know it was the _workspacesDisplay.actor).
>
>
> 1.
> That was thing I was trying before. But: The picker only picked me
> [0x8f1a380 ShellGenericContainer:last-child first-child]
>
> this is indeed the same as if I enter
> imports.ui.main.overview._workspacesDisplay.actor
> in the looking glass inspector, that also returns
> [0x8f1a380 ShellGenericContainer:last-child first-child]
>
> But how do I know than that
> [0x8f1a380 ShellGenericContainer:last-child first-child] =
> imports.ui.main.overview._workspacesDisplay.actor ?

There's no way to find that (it would be impossible). But if you
scourge up and down the tree of actors (use the mouse wheel when
hovering over an actor in the looking glass), and grep through the
sources, you can get close.

> I tried to click on "__metaclass__", but that gave me no information.
>
> 2.
> In looking glass, I can't find the "reactive" property in
> imports.ui.main.overview._workspacesDisplay.actor. How did you know it was
> there?

It's a property for all Clutter actors, of which
_workspacesDisplay.actor is one of. The property inspector is
misleading; we should probably rework that to be a bit better.

>
> Many thanks
> Bazon
>
>
>
>
>
>
> 2012/10/4 Amy <mathematical.cof...@gmail.com>
>>
>> If you connect to 'button-press-event' or 'button-release-event' (ie
>> click event) on `Main.overview._workspacesDisplay.actor`, and
>> additionally set its 'reactive' property to `true` (so that it
>> actually receives these events), that should do the trick. (You can
>> enter the Overview & then open the looking glass and use the 'picker'
>> object to try and work out which actor you want to listen to events on
>> if you didn't know it was the _workspacesDisplay.actor).
>>
>> On 3 October 2012 23:37, Bazon Bloch <bazonbl...@arcor.de> wrote:
>> > Hello,
>> >
>> > I would like to show the desktop when clicking an empty place in the
>> > overview in WorkspacesView.WorkspacesDisplay mode.
>> > So I need a connect signal for that. Does anyone know that signal?
>> >
>> > Thanks
>> > Bazon
>> > _______________________________________________
>> > gnome-shell-list mailing list
>> > gnome-shell-list@gnome.org
>> > https://mail.gnome.org/mailman/listinfo/gnome-shell-list
>
>
>
> _______________________________________________
> gnome-shell-list mailing list
> gnome-shell-list@gnome.org
> https://mail.gnome.org/mailman/listinfo/gnome-shell-list
>



-- 
  Jasper
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gnome-shell-list

Reply via email to