#include "helper.h"
-/*
- If m is not a base TreeModel type (ie, is a filter or sorter) then
+/*
+ If m is not a base TreeModel type (ie, is a filter or sorter) then
convert OP to a TreePath for the base and return it.
The return value must be freed by the caller.
*/
get_base_tree_path (GtkTreeModel *m, GtkTreePath *op)
{
GtkTreePath *p = gtk_tree_path_copy (op);
- while ( ! PSPPIRE_IS_DICT (m))
+ while (! PSPPIRE_IS_DICT (m))
{
GtkTreePath *oldp = p;
-
+
if (GTK_IS_TREE_MODEL_FILTER (m))
{
p = gtk_tree_model_filter_convert_path_to_child_path (GTK_TREE_MODEL_FILTER (m), oldp);
{
g_error ("Unexpected model type: %s", G_OBJECT_TYPE_NAME (m));
}
-
+
gtk_tree_path_free (oldp);
}
have_type = true;
}
- g_list_foreach (list, (GFunc) gtk_tree_path_free, NULL);
+ g_list_foreach (list, GFUNC_COMPAT_CAST (gtk_tree_path_free), NULL);
g_list_free (list);
- if ( retval == FALSE )
+ if (retval == FALSE)
return FALSE;
/* now deal with the dest widget */
const struct variable *v;
gtk_tree_model_get (model, &iter, 0, &v, -1);
- if ( have_type && var_get_type (v) != type )
+ if (have_type && var_get_type (v) != type)
{
retval = FALSE;
break;
const struct variable *v = psppire_dict_get_variable (dict, idx[0]);
gtk_tree_path_free (p);
- if ( var_is_alpha (v))
+ if (var_is_alpha (v))
{
retval = FALSE;
break;
}
}
- g_list_foreach (list, (GFunc) gtk_tree_path_free, NULL);
+ g_list_foreach (list, GFUNC_COMPAT_CAST (gtk_tree_path_free), NULL);
g_list_free (list);
return retval;