Since GS 3.6, I believe, some actors are now in containers. This, or something similar may be the reason for such behavior. Depending on your needs, either check whether there is a container and use its coordinate instead, or use a method returning global coordinates.
Vadim Original Message From: gnome-shell-list-requ...@gnome.org Sent: Friday, April 18, 2014 7:00 AM To: gnome-shell-list@gnome.org Reply To: gnome-shell-list@gnome.org Subject: gnome-shell-list Digest, Vol 66, Issue 16 Send gnome-shell-list mailing list submissions to gnome-shell-list@gnome.org To subscribe or unsubscribe via the World Wide Web, visit https://mail.gnome.org/mailman/listinfo/gnome-shell-list or, via email, send a message with subject or body 'help' to gnome-shell-list-requ...@gnome.org You can reach the person managing the list at gnome-shell-list-ow...@gnome.org When replying, please edit your Subject line so it is more specific than "Re: Contents of gnome-shell-list digest..." Today's Topics: 1. Get x position of panel item (Megh) 2. Re: Get x position of panel item (Carlos Soriano S?nchez) 3. Re: Get x position of panel item (Megh Parikh) ---------------------------------------------------------------------- Message: 1 Date: Thu, 17 Apr 2014 12:50:27 +0005 From: Megh <meg...@gmail.com> To: gnome-shell-list@gnome.org Subject: Get x position of panel item Message-ID: <1397738728.146...@smtp.gmail.com> Content-Type: text/plain; charset="utf-8"; Format="flowed" 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 . -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://mail.gnome.org/archives/gnome-shell-list/attachments/20140417/58b2f5a0/attachment.html> ------------------------------ Message: 2 Date: Thu, 17 Apr 2014 14:54:24 +0200 From: Carlos Soriano S?nchez <carlos.sorian...@gmail.com> To: Megh <meg...@gmail.com> Cc: gnome-shell-list <gnome-shell-list@gnome.org> Subject: Re: Get x position of panel item Message-ID: <CAPoe4L6bP1q=4evg4dajsxujyrmrc-xaw6edbmcwfvfy2eu...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" 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 <meg...@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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://mail.gnome.org/archives/gnome-shell-list/attachments/20140417/a61506c6/attachment.html> ------------------------------ Message: 3 Date: Thu, 17 Apr 2014 18:59:11 +0530 From: Megh Parikh <meg...@gmail.com> To: gnome-shell-list <gnome-shell-list@gnome.org> Subject: Re: Get x position of panel item Message-ID: <CANuFArgN85Sw_xTDy=3ofz5bjrejb7rze48xm0p8zqklnxs...@mail.gmail.com> Content-Type: text/plain; charset="utf-8" Megh Parikh On Apr 17, 2014 6:57 PM, meg...@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.sorian...@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 <meg...@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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://mail.gnome.org/archives/gnome-shell-list/attachments/20140417/beee70aa/attachment.html> ------------------------------ Subject: Digest Footer _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list ------------------------------ End of gnome-shell-list Digest, Vol 66, Issue 16 ************************************************ _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list