Re: Get x position of panel item



Megh Parikh

On Apr 17, 2014 6:57 PM, meghjp gmail com wrote:

Yeah,  but still the x of panel would be 0 and therefore I will get the absolute position wont I?

Megh Parikh

On Apr 17, 2014 6:24 PM, "Carlos Soriano Sánchez" <carlos soriano89 gmail com> wrote:
Hi Megh,

The position of an actor is tied to its parent. So that 'x' is the x relative to the parent actor.
To get the absolute x position on the stage you should use actor.get_transformed_position ()


2014-04-17 14:45 GMT+02:00 Megh <meghjp gmail com>:
How can I get x position of a panel item (appMenu)

Earlier actor.x gave me the correct position but now it gives me only 0 ?

Affects my extension Wintitle in 3.12 .

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




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]