+Sat Dec 16 14:13:07 2006 Ben Pfaff <blp@gnu.org>
+
+ * psppire-data-store.c (geometry_get_justification): Don't assume
+ that ALIGN_* and GTK_JUSTIFY_* values coincide.
+
Sat Dec 16 14:10:43 2006 Ben Pfaff <blp@gnu.org>
* psppire-var-store.c (text_for_column): Adjust to account for new
pv = psppire_dict_get_variable(ds->dict, unit);
- /* Kludge: Happily GtkJustification is defined similarly
- to enum alignment from pspp/variable.h */
- return var_get_alignment(pv);
+ return (var_get_alignment (pv) == ALIGN_LEFT ? GTK_JUSTIFY_LEFT
+ : var_get_alignment (pv) == ALIGN_RIGHT ? GTK_JUSTIFY_RIGHT
+ : GTK_JUSTIFY_CENTER);
}