Commit cde55c3b authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow

Provide Undo for sheet reordering via tab dragging. [#725540]

2014-03-03  Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* src/wbc-gtk.c (cb_bnotebook_page_reordered): provide undo
parent 4f4223ff
2014-03-03 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* src/wbc-gtk.c (cb_bnotebook_page_reordered): provide undo
2014-03-02 Morten Welinder <terra@gnome.org>
* src/wbc-gtk.c (cb_workbook_debug_info): New debug flag
......
......@@ -14,6 +14,7 @@ Andreas:
* Export and import more sheet properties to/from ODF. [#725258]
* Fix validation import from ODF. [#725321]
* Fix autofilter condition export to ODF. [#725458]
* Provide Undo for sheet reordering via tab dragging. [#725540]
Jean:
* Fix persistence of hyperlinks tips. [see #724108]
......
......@@ -967,9 +967,12 @@ cb_bnotebook_page_reordered (GtkNotebook *notebook, GtkWidget *child,
g_printerr ("Reordered %d -> %d\n", old, page_num);
if (old != page_num) {
Workbook *wb = wb_control_get_workbook (WORKBOOK_CONTROL (wbcg));
WorkbookControl * wbc = WORKBOOK_CONTROL (wbcg);
Workbook *wb = wb_control_get_workbook (wbc);
Sheet *sheet = workbook_sheet_by_index (wb, old);
WorkbookSheetState * old_state = workbook_sheet_state_new(wb);
workbook_sheet_move (sheet, page_num - old);
cmd_reorganize_sheets (wbc, old_state, sheet);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment