From: John Darrington Date: Sun, 13 Dec 2009 14:45:34 +0000 (+0100) Subject: Change psppire_dicts pointers from G_POINTER to PSPPIRE_VAR_PTR_TYPE X-Git-Tag: sid-i386-build122~10 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45fb19608ffa759f7a0221878d1a9a72c6727dc7;p=pspp-builds.git Change psppire_dicts pointers from G_POINTER to PSPPIRE_VAR_PTR_TYPE --- diff --git a/src/ui/gui/psppire-dict.c b/src/ui/gui/psppire-dict.c index c82395f2..9e2190b2 100644 --- a/src/ui/gui/psppire-dict.c +++ b/src/ui/gui/psppire-dict.c @@ -21,6 +21,7 @@ #include #include +#include "psppire-var-ptr.h" #include "psppire-dict.h" #include #include @@ -648,7 +649,7 @@ tree_model_column_type (GtkTreeModel *model, gint index) return G_TYPE_STRING; break; case DICT_TVM_COL_VAR: - return G_TYPE_POINTER; + return PSPPIRE_VAR_PTR_TYPE; break; default: g_return_val_if_reached ((GType)0); @@ -765,8 +766,8 @@ tree_model_get_value (GtkTreeModel *model, GtkTreeIter *iter, } break; case DICT_TVM_COL_VAR: - g_value_init (value, G_TYPE_POINTER); - g_value_set_pointer (value, var); + g_value_init (value, PSPPIRE_VAR_PTR_TYPE); + g_value_set_boxed (value, var); break; default: g_return_if_reached ();