Wireshark-dev: Re: [Wireshark-dev] New packet list - small fixes
From: "Anders Broman" <a.broman@xxxxxxxxx>
Date: Sun, 12 Jul 2009 21:41:14 +0200
Thanks,
I've now changed it so that the column index is also used in the tree view.
Regards
Anders

-----Ursprungligt meddelande-----
Från: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] För Jakub Zawadzki
Skickat: den 12 juli 2009 20:15
Till: Developer support list for Wireshark
Ämne: Re: [Wireshark-dev] New packet list - small fixes

On Sun, Jul 12, 2009 at 11:08:59AM +0200, Anders Broman wrote:
> I haven't figured out where packet_list_get_value():s column
> value comes from yet. 

It's set by gtk_tree_view_column_add_attribute(..., "text", X) call

Doc:
http://library.gnome.org/devel/gtk/stable/GtkTreeViewColumn.html#gtk-tree-vi
ew-column-add-attribute
"So for example if column 2 of the model contains strings, you could
have the "text" attribute of a GtkCellRendererText get its values from
column 2."

In attachment patch.