}
+static void
+tx_string_to_int (const GValue *src, GValue *dest)
+{
+ const gchar *str = g_value_get_string (src);
+ gint x = atoi (str);
+ g_value_set_int (dest, x);
+}
+
+
+
GType align_enum_type;
GType measure_enum_type;
GType role_enum_type;
preregister_misc (void)
{
g_value_register_transform_func (G_TYPE_STRING, G_TYPE_DOUBLE, tx_string_to_double);
+ g_value_register_transform_func (G_TYPE_STRING, G_TYPE_INT, tx_string_to_int);
align_enum_type = g_enum_register_static ("PsppAlignment", align);
measure_enum_type = g_enum_register_static ("PsppMeasure", measure);