X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fdialog-common.c;h=cdc0758cb3e77ca4f115aa67c7a6699331476d66;hb=c4d60b82a3c3b2e2398f2f8247b23aaacd7951ca;hp=cdd6ac667a6e9ade846ce51f2009031a73d0affb;hpb=6e097c89af440da90b43ce90864394c4d0c843d5;p=pspp diff --git a/src/ui/gui/dialog-common.c b/src/ui/gui/dialog-common.c index cdd6ac667a..cdc0758cb3 100644 --- a/src/ui/gui/dialog-common.c +++ b/src/ui/gui/dialog-common.c @@ -33,7 +33,7 @@ static GtkTreePath * 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; @@ -112,10 +112,10 @@ homogeneous_types (GtkWidget *source, GtkWidget *dest) 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 */ @@ -128,7 +128,7 @@ homogeneous_types (GtkWidget *source, GtkWidget *dest) 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; @@ -172,14 +172,14 @@ numeric_only (GtkWidget *source, GtkWidget *dest) 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;