Ethereal-dev: Re: [Ethereal-dev] GTK+ 2.0.0

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: Tue, 12 Mar 2002 15:04:21 -0800
On Tue, Mar 12, 2002 at 03:13:40PM -0700, John McDermott wrote:
> Well, it seems that 2.0.0 is finally out.  Congrats to the Gtk team
> which includes "our own" Guy Harris.

Eh? I have contributed some changes to GTK+, and made an API suggestion
for the new {tree,list} view widget, based on experience with Ethereal,
but I wouldn't count myself as part of the GTK+ team - I haven't made
major contributions.

> I have not had time to review the
> changes, but it looks as though they are major. I also note "A final
> version of the Windows port is expected within a month or two."  That
> may be very useful.  Does anyone know if 2.0 is a superset of 1.2 or if
> we'd have to make major changes to use it?

They don't guarantee that applications will work without source code
changes.

It *might* be the case that there are applications that work. 
However...

> The main change I am aware
> of the addition of GtkTreeView and (IIRC, the deprecation of GtkTree).

...one change is that, internally, GTK+ uses UTF-8-encoded strings,
rather than, say, EUC-encoded or other forms of encoding for non-ASCII
strings.  That might require some changes on our part (changes for the
better, as we wouldn't have to worry about the encoding of fonts).

> The info on GtkTreeView is (from
> http://www.gtk.org/gtk+-2.0.0-announce.html):
>  GtkTreeView - a flexible widget for tree and list display, with
>     features such as a model-view split for abstracting data storage
>     from display, the ability to create custom models to accommodate
>     large data sets, versatile display/rendering features, and
>     editable data cells.

Yes, that'd be a nice widget for the packet-list pane - it means that,
to display a row, the view widget calls back to the model widget to get
the column information, rather than requiring strings to be allocated
for columns when you construct the packet-list pane.

> BTW I also note one of the improvements listed is "A clean and
> attractive new default appearance."

Yeah, they switched from the Motif-ish default to a new default style.