• Andreas J. Guelzow 's avatar
    fix crash and save sort-setups · 4f7a000f
    Andreas J. Guelzow authored
    2009-11-14  Andreas J. Guelzow <aguelzow@pyrshep.ca>
    
    	* src/sheet.h (gnm_sheet_get_sort_setups): new
    	(gnm_sheet_add_sort_setup): new
    	(gnm_sheet_find_sort_setup): new
    	* src/sheet.c (gnm_sheet_add_sort_setup): new
    	(gnm_sheet_get_sort_setups): new
    	(gnm_sheet_find_sort_setup): new
    	(gnm_sheet_init): initialize new field sort_setups
    	(gnm_sheet_finalize): and free them
    	* src/sort.c (gnm_sort_data_copy): new
    	* src/sort.h (gnm_sort_data_copy): new
    
    2009-11-14  Andreas J. Guelzow <aguelzow@pyrshep.ca>
    
    	* dialog-cell-sort.c (set_ok_button_sensitivity): check whether
    	  state->sel is NULL
    	(cb_dialog_ok_clicked): store a copy of the setup.
    	(dialog_cell_sort_load_sort_setup): new stub
    	(dialog_load_selection): do more
    	(dialog_init): move some code into dialog_load_selection
    4f7a000f
dialog-cell-sort.c 31.3 KB