GNOME Bugzilla – Bug 659274
popup-menu: Allow adjusting where in the source the arrow point to
Last modified: 2011-10-13 13:08:42 UTC
See patch. I'm not entirely happy with the terminology, but wasn't able to come up with something better for now ...
Created attachment 196758 [details] [review] popup-menu: Allow adjusting where in the source the arrow point to Currently BoxPointer/Menus always point to the center of the associated source actor. This is generally what we want, but add some API to adjust that behavior for the cases where it isn't.
Review of attachment 196758 [details] [review]: How is this different than the alignment property passed into reposition (and into _init)?
(In reply to comment #2) > Review of attachment 196758 [details] [review]: > > How is this different than the alignment property passed into reposition (and > into _init)? The existing alignment refers to the position of the pointer with regard to the menu, the new alignment refers to the position of the pointer (and the menu) with regard to the source actor.
(In reply to comment #3) > (In reply to comment #2) > > Review of attachment 196758 [details] [review] [details]: > > > > How is this different than the alignment property passed into reposition (and > > into _init)? > > The existing alignment refers to the position of the pointer with regard to the > menu, the new alignment refers to the position of the pointer (and the menu) > with regard to the source actor. Aha! Thanks. If you wouldn't mind, could you please rename the existing "alignment" to "arrowAlignment" to make it clearer?
Created attachment 198889 [details] [review] popup-menu: Allow adjusting where in the source the arrow point to (In reply to comment #4) > Aha! Thanks. If you wouldn't mind, could you please rename the existing > "alignment" to "arrowAlignment" to make it clearer? Sure.
Review of attachment 198889 [details] [review]: I was thinking about the boxPointer itself, but sure, go for it.
(In reply to comment #6) > I was thinking about the boxPointer itself, but sure, go for it. Oh, OK - I changed the property name in boxPointer as well before pushing :)