GUI: Scroll to correct datasheet position after deleting/inserting variables.
authorJohn Darrington <john@darrington.wattle.id.au>
Sun, 28 Apr 2019 15:24:36 +0000 (17:24 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sun, 28 Apr 2019 15:41:33 +0000 (17:41 +0200)
commit9f61ed44481edf8d9dcacc96de855f20a979bf91
tree4f98bbbe7214f97f54b0b005c8948a483d2790b6
parent31127c303d92ce811f1dd365af83644266e4fd88
GUI: Scroll to correct datasheet position after deleting/inserting variables.

* src/ui/gui/psppire-data-sheet.h (psppire_data_sheet_delete_variables,
  psppire_data_sheet_insert_new_variable_at_posn): New functions
* src/ui/gui/psppire-data-sheet.c: insert_new_variable ->
psppire_data_sheet_insert_new_variable_at_posn.
* src/ui/gui/psppire-data-sheet.c: delete_variables ->
psppire_data_sheet_delete_variables.
* src/ui/gui/psppire-data-editor.c:
(psppire_data_editor_data_delete_variables,
psppire_data_editor_insert_new_variable_at_posn): Reimplement.
src/ui/gui/psppire-data-editor.c
src/ui/gui/psppire-data-sheet.c
src/ui/gui/psppire-data-sheet.h