[Xfce-bugs] [Bug 16075] Icon view: excess clickable area of multiline filenames

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Fri Nov 1 21:27:32 CET 2019


https://bugzilla.xfce.org/show_bug.cgi?id=16075

--- Comment #4 from Adam Purkrt <adam at purkrt.net> ---
Delving into the code, there is exo_icon_view_calculate_item_size(..) function,
which contains a call to gtk_cell_renderer_get_preferred_size (..) (introduced
with GTK 3). This call will, for the text cell, return the width as wrap-width
(132 pixels=128+4 padding (in default zoom)) whenever the text is long enough
to be multi-line. It will not return the real width of the wrapped multiline
text. This is the origin of the excess clickable area. I do not know how to fix
this at the moment.

exo_icon_view_paint_item (..) contains a call to
gtk_cell_renderer_get_aligned_area (..), which will return the aligned_area as
a area just around the rendered text, centered in cell_area (that is the reason
why the highlight is painted correctly around the text, yet misplaced).

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list