Ethereal-dev: Re: [Ethereal-dev] gtk/proto_draw.c(1469): gtk_tree_view_expand_to_path from GTK

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

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 3 Nov 2003 13:02:22 -0800

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?