Ethereal-dev: Re: [ethereal-dev] tree draw (possible bug)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxx>
Date: Fri, 16 Jun 2000 12:29:36 -0700 (PDT)
> > I was running Ethereal 0.7.9 and then went to 0.8.8.
> > I noticed that the lines connecting the branches of
> > the proto tree are missing in 0.8.8. Was this intentional,
> > or is there a bug in 0.8.8, or do I need a GTK patch?
> 
> The default behavior was changed a while back draw the tree without
> connecting lines.

Actually, that dates back at least as far as Ethereal 0.4.0:

int
main(int argc, char *argv[])
{

	...

  tree_view = gtk_tree_new();

	...

  gtk_tree_set_view_lines(GTK_TREE(tree_view), FALSE);

	...

}

However, many versions of GTK+ 1.2[.x] have a bug wherein that call has
no effect (1.2.3 probably has that bug - does RH 6.2 really ship with
that ancient a version of GTK+?).  That bug was fixed in recent versions
of GTK+.  (Ethereal was originally developed with GTK+ 1.0[.x], which
didn't have that bug.)

Ethereal 0.8.8, however, uses a GtkCTree rather than a GtkTree to
display the protocol tree; I don't think the GtkCTree has that bug. 
That's probably why the behavior changed when switching to Ethereal
0.8.8; 0.8.8, by using a GtkCTree rather than a GtkTree, doesn't trip
across the bug, and thus gives the intended default behavior, i.e. no
lines.