GNOME Bugzilla – Bug 335012
gtkcellrenderertext - gtkeditable: bad interaction when ypad is set to hi value
Last modified: 2011-02-04 16:10:31 UTC
Please describe the problem: If a middle aligned text well showed with a gtkcellrenderertext is clicked to edit all the cell become a big editable cell with the text pushed at the top of the cell and a big unusable white space under. Steps to reproduce: 1. Set the ypad property of a editable gtkcellrenderertext to a high value (> 10 for example), 2. Click to edit it. Actual results: You view the bad effect. Expected results: 1) That the text don't move up. 2) The editable cell follow the dimension of the font and not the dimension of the cell. Does this happen every time? Yes. Other information: These are two snapshots to show the problem. http://www.alternativeoutput.it/img/treeview_normal.png and http://www.alternativeoutput.it/img/treeview_editing.png
Just happened to fix this earlier today. Main problem here is that GtkEntry is really constrained to a text area of a single line, the rest of the editable area has some drawing glitches (note the area below the editable text in your second screenshot).
Created attachment 66354 [details] [review] proposed patch
Fixed on HEAD with an additional modification for the text renderer.
*** Bug 345591 has been marked as a duplicate of this bug. ***