Skip to content
  • Andreas J. Guelzow's avatar
    Implement ctrl-click cell deselection. [#610696] · db6d7144
    Andreas J. Guelzow authored
    2011-11-30  Andreas J. Guelzow <aguelzow@pyrshep.ca>
    
    	* src/cmd-edit.c: adjust calls to sv_selection_add_full and
    	sv_selection_add_pos throughout
    	(sv_select_cur_inputs): fix leak
    	* src/commands.c (cmd_colrow_hide_correct_selection): adjust
    	calls to sv_selection_add_full
    	* src/item-grid.c (item_grid_button_released): simplify selection,
    	adjust call to sv_selection_add_pos
    	* src/selection.c (sv_selection_add_pos): add argument
    	(sv_selection_add_full): add argument
    	(sv_selection_simplified_free): new
    	(sv_selection_simplify): new
    	(sv_selection_calc_simplification): new, use it throughout instead of
    	accessing sv->selection directly
    	(sheet_selection_set_internal): redraw headers if the selection mode
    	is not just ADD
    	(sv_selection_free): use g_slist_free_full
    	* src/selection.h (GnmSelectionMode): new
    	(sv_selection_add_pos): add argument
    	(sv_selection_add_full): add argument
    	(sv_selection_simplified_free): new
    	(sv_selection_simplify): new
    	* src/sheet-control-gui.c: adjust calls to sv_selection_add_full and
    	sv_selection_add_pos throughout
    	* src/sheet-view.c (sv_real_dispose): dispose of simplified selection
    	(sheet_view_init): initialize selection fields
    	* src/sheet-view.h: add fields
    	* src/sheet.c (gnm_sheet_resize_main): adjust call to sv_selection_add_pos
    	* src/test-pango.c (cb_exercise_pango): adjust call to sv_selection_add_full
    	* src/workbook-view.c (wb_view_selection_desc): use selection_first_range
    	rather than accessing the fields directly
    
    2011-11-30 Andreas J. Guelzow <aguelzow@pyrshep.ca>
    
    	* excel-xml-read.c (xl_xml_selection): adjust call to
    	sv_selection_add_full
    	* ms-excel-read.c (excel_read_SELECTION): adjust calls to
    	sv_selection_add_full and sv_selection_add_pos
    db6d7144