Add check for gtk 2.4 when calling gtk_tree_view_column_set_expand.

svn path=/trunk/; revision=24603
This commit is contained in:
Stig Bjørlykke 2008-03-11 17:27:41 +00:00
parent dda91091ad
commit 11eda6b97b
1 changed files with 2 additions and 0 deletions

View File

@ -445,7 +445,9 @@ create_tree(GtkWidget *container, ph_stats_t *ps)
"text", PROTOCOL_COLUMN,
NULL);
gtk_tree_view_column_set_sizing(column, GTK_TREE_VIEW_COLUMN_AUTOSIZE);
#if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION >= 4) || GTK_MAJOR_VERSION > 2
gtk_tree_view_column_set_expand(column, TRUE);
#endif
gtk_tree_view_append_column(tree_view, column);
renderer = gtk_cell_renderer_text_new();
column = gtk_tree_view_column_new_with_attributes("% Packets", renderer,