/* This function can be called from gtk_tree_view_column_set_cell_data_func() the user data must be the column number. Present floats with two decimals  */
void float_data_func(GtkTreeViewColumn *column _U_, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data)
/* This function can be called from gtk_tree_view_column_set_cell_data_func() the user data must be the column number. Present floats with two decimals  */
void float_data_func(GtkTreeViewColumn *column _U_, GtkCellRenderer *renderer, GtkTreeModel *model, GtkTreeIter *iter, gpointer user_data)
{
    gfloat  float_val;
    gchar   buf[20];
    char *savelocale;
    gint float_col = GPOINTER_TO_INT(user_data);
    gtk_tree_model_get(model, iter, float_col, &float_val, -1);
    savelocale = g_strdup(setlocale(LC_NUMERIC, NULL));
    setlocale(LC_NUMERIC, "C");
    g_snprintf(buf, sizeof(buf), "%.2f", float_val);
    setlocale(LC_NUMERIC, savelocale);
    g_free(savelocale);
    g_object_set(renderer, "text", buf, NULL);
}