Ethereal-dev: Re: [Ethereal-dev] packet-rpc.c

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

From: "Ronnie Sahlberg" <rsahlber@xxxxxxxxxxxxxx>
Date: Thu, 19 Apr 2001 20:04:21 +1000
Hi,
Attached is a small hack/diff for gtk/main.c and epan/proto.c which removes
the annoying
"Text (text)" string.

There are probably much nicer ways to solve it, but this seems to work. The
messages are gone.


----- Original Message -----
From: "Guy Harris" <guy@xxxxxxxxxx>
To: "Ronnie Sahlberg" <rsahlber@xxxxxxxxxxxxxx>
Cc: <ethereal-dev@xxxxxxxxxxxx>
Sent: Thursday, April 19, 2001 8:57 AM
Subject: Re: [Ethereal-dev] packet-rpc.c


> > (Now, if one could only get rid of that "Text (text)" thingy in the
lower
> > right corner
> > which is displayed for text nodes also.)
>
> The code in "tree_view_select_row_cb()" that sets that field has:
>
> /*if (finfo->hfinfo && finfo->hfinfo->type != FT_TEXT_ONLY) {*/
> if (finfo->hfinfo) {
>
> The commented-out code won't work any more, as there's no longer an
> FT_TEXT_ONLY type - the special field used for "proto_tree_add_text()"
> is now of type FT_NONE, but there are other fields of that type, so we
> can't just check for FT_NONE.
>
> _______________________________________________
> Ethereal-dev mailing list
> Ethereal-dev@xxxxxxxxxxxx
> http://www.ethereal.com/mailman/listinfo/ethereal-dev
>

Attachment: text.diff
Description: Binary data