Re: Get x position of panel item



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]