Skip to main content
diff options
authorXi Yan2018-07-04 20:50:22 +0000
committerXi Yan2018-07-10 14:01:04 +0000
commit90b11d0439eaf39696ee5c80da07e42a77c9ce34 (patch)
tree027b8adc86ca8e7dc511c24491196ba183ca64b4 /examples
parent2ef6954b2724f4b0e6be7d10562b1cdac3ce7206 (diff)
Bug 531882 (Snippet230_tableCol_icon_packing) - [Gtk3] Snippet230,
tablecolumn icons on right size get cut off 1) In GTK3, event.width in PaintItem is the same as the one previously set in MeasureItem. Snippet230 paints icons at the default event.width position on the right of text in PaintItem, so the icons were painted too far right as a result. This was fixed by explicitly setting event.width to be used in PaintItem to the default event.width using gtk_cell_renderer_set_fixed_size. 2) Custom drawn icons in the expander column of Tree is not positioned correctly. Fixed by adding expander arrow indent in the x position. 3) Calling TreeColumn#pack() for the first time do not account for the indent in the expander column because gtk_tree_view_get_expander_column() returns 0 if expander column is not visible. This was fixed by setting column to visible beforehand in Tree#calculateWidth. Change-Id: I04a26c94ff716c1a52c84d2dbe8ef96386b17035 Signed-off-by: Xi Yan <>
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions

Back to the top