Ethereal-dev: Re: [Ethereal-dev] Change the time format for a file with 500 000 frames...
On Wed, Feb 05, 2003 at 01:06:27PM -0800, Guy Harris wrote:
> The widget is based on the GTK+ 1.2.10 GtkClist; it might not work with
> GTK+ 2.x without some changes. It might be that the right thing to do
> for 2.x is to go to the new 2.x column-list widget, which can, I think,
> already allow you to get the column text values on the fly in that
> fashion.
...although I think that widget might compute the column sizes by, once
the complete list has been built, going to each row, fetching the values
of all the columns, and based on that computing the maximum column
width.
For many of the columns, there are more efficient ways of doing that -
for example, the packet number column's maximum width is just the
string width of a string whose value is the number of frames in the
capture, and some columns start out with wired-in fixed lengths.
(Unfortunately, given that you can't force GTK+ 2.x to choose
fixed-width fonts, you can't guarantee that the proper width for the
protocol or info column is the width of the longest protocol info
string; you can probably assume that to be the case for columns whose
only changing contents are digits, as digits tend to have the same
length in any font.)