{"push_id":776756372,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"f614bc6b98114b40bda8c2ac96f77fc3bc2efa9e","before":"cb07d49e4f148dc6f726b9bab9fe9dd427ac36e2","commits":[{"sha":"f614bc6b98114b40bda8c2ac96f77fc3bc2efa9e","author":{"email":"e3224032200eba3782836f92cf97d8bb5e5ced2c@redhat.com","name":"Eric Williams"},"message":"Bug 469277: [GTK3] Tree cuts wide icons on the right\n\nThis patch addresses the bug where in certain cases, images in TreeItems\nwould be cut off. This happened when images were wider than 16px,\nresulting in text rendering over the right side of image. This was seen\nmainly in the Outline view when enabling styled label providers (Window\n-> Preferences -> General -> Appearance -> Use Mixed Fonts for Labels\nand Icons).\n\nThe getTextBounds() method in TreeItem.java was causing the issue, as\nthe geometric area for text renderers was not taking the image size into\nconsideration, causing the width to be set at 16px. This resulted in\ntext rendering occurring after 16px, when the image could be wider than\n16px. There is now a check in place that re-adjusts the bounds of the\ntext renderer if the width of the image is larger than the default\noffset.\n\nTested on Gtk3.16, 3.14, 3.12, 3.10, 3.8, and 2.24. AllNonBrowswer JUnit\ntests pass on Gtk3 and Gtk2.\n\nChange-Id: I98afa0d369960313ad35636840489bd796276c23\nSigned-off-by: Eric Williams <ericwill@redhat.com>","distinct":true,"url":"https://api.github.com/repos/eclipse/eclipse.platform.swt/commits/f614bc6b98114b40bda8c2ac96f77fc3bc2efa9e"}]}