Bug with custom cell renderers in gtk-2.10.x



Hi all.

I'm using custom cell renderers, and have noticed that after upgrading to any version of gtk-2.10.x, I'm getting problems with the vertical size allocated for my editables - the 1st time I go to edit data in a cell, the editable is *very* short, and in the middle of the cell. Any subsequent edits produce a properly sized editable. I've reported the problem first to the gtk-perl list, and Torsten Schoenfeld ( one of the gtk2-perl authors ) said:

I'm seeing this problem as well. As far as I can tell, it appeared in revision 1.563 of gtktreeview.c and revision 1.96 of gtkcellrenderertext.c. ChangeLog.pre-2-10 has this to say: 2006-07-18 Kristian Rietveld <kris imendio com> Fix for #335012, reported by Matteo Nastasi. * gtk/gtktreeview.c (gtk_tree_view_real_start_editing): if the requested space of the editable is smaller than the cell area, put it up above the middle of the cell area. * gtk/gtkcellrenderertext.c (gtk_cell_renderer_text_start_editing): configure the inner border to cover the cell area if the entry requisition is smaller than the cell_area. (Bug URL: http://bugzilla.gnome.org/show_bug.cgi?id=335012)

I have attached a small script that demonstrates the problem ( you will need gtk2-perl, which most distributions include by default now ). When I run it under any version of gtk-2.8.x, it works fine. Upgrading to any 2.10.x produces the bug.

I am making *heavy* use of this custom CellRendererText in Gtk2::Ex::Datasheet::DBI, and would like to be able to claim gtk-2.10.x compatibility with the next release :)

--
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au

Attachment: custom_cell_renderer_text.pl
Description: Perl program



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]