Ethereal-dev: Re: [Ethereal-dev] gtk/proto_draw.c(1469): gtk_tree_view_expand_to_path from GTK
On lun, nov 03, 2003 at 01:02:22 -0800, Guy Harris wrote:
>
> On Oct 23, 2003, at 6:59 AM, Ulf Lamping wrote:
>
> >The GTK function: gtk_tree_view_expand_to_path (available since GTK
> >version 2.2) is used in the file proto_draw.c.
> >
> >As this is the *only* function used from GTK version 2.2, and not
> >included in GTK version 2.0 (which I'm using), I would ask if this
> >function has to be used.
> >
> >As a workaround, we could to something like this?!?:
> >
> >#if GTK_MAJOR_VERSION >= 2.2
> > gtk_tree_view_expand_to_path(info.tree_view, path);
> >#else
> > gtk_tree_view_expand_row(info.tree_view, path, FALSE);
> >#endif
>
> I've checked in Olivier Abad's patch to include the 2.2.4
> "gtk_tree_view_expand_to_path()" - Olivier, is that the right thing to
> do, or would Ulf's change work better?
It is the right thing to do. Using gtk_tree_view_expand_row doesn't
work, as it doesn't expand parent nodes, and child nodes can't be
expanded if the parent is collapsed.
See http://www.ethereal.com/lists/ethereal-dev/200310/msg00368.html
Olivier
--
I am NOMAD!