psppire-data-sheet: Set cursor on row in psppire_data_sheet_show_variable().
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 9 Nov 2012 06:51:08 +0000 (22:51 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Fri, 9 Nov 2012 06:51:08 +0000 (22:51 -0800)
commita67af165ac29e2daadf950a84b536b6b7b408a31
treefe09ece627f464a1e2186c90766e5f00150a68fb
parent474ee420de40fc52eefabf81bcbdd156b44bbf0d
psppire-data-sheet: Set cursor on row in psppire_data_sheet_show_variable().

psppire_data_sheet_show_variable() only ensured that the variable in
question was visible in the data sheet.  This commit makes it also put
the cursor on the variable's column.  This affects the function's two
callers: the Find Dialog now selects a cell instead of an entire row,
and double-clicking a row number in the variable sheet now does likewise.

This solves a problem reported by John Darrington, who reported that
double-clicking on a row number in the variable sheet did not change
the selected cell but only switched to the data sheet.
src/ui/gui/psppire-data-sheet.c