[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-dev: Rendering bug in attributes pane
On Fri, 2006-10-13 at 17:29 +0200, Patrick Bernaud wrote:
> Hi Ales and Peter,
>
> Ales Hvezda writes:
> > [snip]
> > >Hi, I've seen this bug for a while now, perhaps someone could see if
> > >their box does similar.
> >
> > Sorry Peter, I don't see this either on my box. What version
> > of gtk+ are you running? Any unusual (non default) gtk+ theming going on?
> >
>
> I can not reproduce it either. This cell renderer (the editable multi
> line text renderer) is a custom renderer so it is quite possible there
> is a problem with it.
>
> I will try on an Ubuntu machine.
It is a behaviour change in later GTK versions:
See:
http://cvs.gnome.org/viewcvs/gtk%2B/gtk/gtktreeview.c?r1=1.562&r2=1.563
"""
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.
"""
Took a lot of pouring over the GTK sourcecode, and playing with gdb to
discover the problem..
It appears that now, the code which adds the editing widget checks to
see what size the editing widget wants to requisition, and if smaller
than the cell size, shrinks the widget. In our case, the text editing
widget doesn't ask for any height. (Haven't dug into this further yet),
and we get a rendering bug. (And a virtually unusable multi-attribute
editor).
Our widget needs to ask for a sensible size when:
gtk_widget_size_request (GTK_WIDGET (cell_editable), &requisition);
gets called.
Regards,
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev