Re: More on issues with custom cell renderers ( working example )

On Fri, 2006-09-29 at 11:27 +1000, Daniel Kasak wrote:

I'm still having issues with custom cell renderers and gtk+-2.10.x. 
Unfortunately I use these custom cell renderers *everywhere*. Anyway, 
I've put together a simple working example. The custom cell renderer is 
pretty much a copy & paste from Odot, but is also the custom cell 
renderer that I make heavy use of in Gtk2::Ex::Datasheet::DBI.

With all versions of gtk-2.10.x, the first time you start editing a cell 
in a particular column, the editable is *very* short, and centered in 
the cell. Any subsequent edits in any cell in the same column works 
normally. Rolling back to gtk-2.8.x ( which is becoming quite a problem, 
which is another story again ) fixes this issue.

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:


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