GNOME Bugzilla – Bug 641728
Boxpointer arrows should be "real" content centered
Last modified: 2011-02-09 17:50:25 UTC
Created attachment 180306 [details] [review] Centering the boxpointer arrow on the "real" source center When a boxpointer source is not padding centered, the arrow is not on the "visual center". It should use the real content to compute the center.
Comment on attachment 180306 [details] [review] Centering the boxpointer arrow on the "real" source center >+ let sourceChild = sourceActor.get_child(); No, this is just assuming that (a) sourceActor has padding, (b) sourceActor is an St.Bin, (c) its child does not have padding. Did what we discussed on IRC (using st_theme_node_get_content_box()) not work? Another possibility would be to just make the message tray pass the inner actor as the sourceActor instead of the outer, padded one.
Created attachment 180491 [details] [review] Centering the boxpointer arrow on the "real" source center Just needed a little introspection add to mark an argument as (out).
committed (with a rewritten commit message). thanks