psppire-var-sheet: Allow adjusting width of string variables.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Sep 2012 18:07:59 +0000 (11:07 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 2 Sep 2012 18:07:59 +0000 (11:07 -0700)
commit26caf1112c3a84bb67e4a7f208ec3e8db56719ad
treea1653521f6afb059cb191e42f70be44a99ba0f7f
parente54b3f63dc99797c1df8e37de02d0d702b7ce90f
psppire-var-sheet: Allow adjusting width of string variables.

John Darrington pointed out that the "width" column in the variable
sheet didn't allow the width to be modified with a spin button for
string variables, as it did for numeric variables.  This commit
fixes the problem.

The reordering in on_var_column_edited() is necessary because the
print format of a string variable can't be changed to a different
width before changing the variable's width.  (The change from
var_set_print_format() to var_set_both_formats() is not
necessary.  It is for consistency with changing variable type and
format via the var-type-dialog.)
src/ui/gui/psppire-var-sheet.c