Ethereal-dev: Re: [ethereal-dev] Vines coded expanded

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

From: guy@xxxxxxxxxx (Guy Harris)
Date: Thu, 3 Dec 1998 18:35:05 -0800 (PST)
>   Sounds fine to me.  Changing the style of the packet detail should just
> be a matter of adding "gtk_widget_set_style(tree_view, pl_style)" to
> ethereal.c shortly after tree_view is created.

Unless I've missed something, 'tain't so easy.  The problem is, it
appears, that the widgets that really need their style tweaked are the
label widgets inside the tree item widgets inside the tree widget, and,
at least in the GTK+ 1.0.6 I have here, the tree widget's style doesn't
get propagated down to the tree item widgets, and the tree item widget's
style doesn't get propagated down to the label widgets.

I finally got it to work by *yuk* replacing the call to
"gtk_tree_item_new_with_label()" in "add_item_to_tree()" with a modified
version of the code to "gtk_tree_item_new_with_label()" that sets the
style on the newly-created label widget, but I'm still not sure that's
how I'm *supposed* to be doing that - and it means that I've
cut-and-pasted code, so if the tree item widget changes in a future GTK+
release, that change doesn't get propagated....