/* We have our own functionality to toggle sort order on a column to avoid having empty sorting arrow widgets in the column header.  */
static void packet_list_column_clicked_cb(GtkTreeViewColumn *col, gpointer user_data _U_)
/* We have our own functionality to toggle sort order on a column to avoid having empty sorting arrow widgets in the column header.  */
static void packet_list_column_clicked_cb(GtkTreeViewColumn *col, gpointer user_data _U_)
{
	GtkSortType order = gtk_tree_view_column_get_sort_order (col);
	gint col_id = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(col), E_MPACKET_LIST_COL_KEY));
	if (cfile.state == FILE_READ_IN_PROGRESS)
		return;
	if (!gtk_tree_view_column_get_sort_indicator(col)) {
		packet_list_sort_column (col_id, col, GTK_SORT_ASCENDING, TRUE);
	} else if (order == GTK_SORT_ASCENDING) {
		packet_list_sort_column (col_id, col, GTK_SORT_DESCENDING, TRUE);
	} else {
		packet_list_sort_column (0, NULL, GTK_SORT_ASCENDING, FALSE);
	}
}