[gnumeric] save export info when opening a non-spreadsheet file
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] save export info when opening a non-spreadsheet file
- Date: Wed, 8 Aug 2012 01:58:34 +0000 (UTC)
commit c896fa0a572357ef8cd12e3559d7ef7b3d1830f5
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Tue Aug 7 19:56:42 2012 -0600
save export info when opening a non-spreadsheet file
2012-08-07 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/workbook-view.c (wb_view_new_from_input): save uri for
export if appropriate
ChangeLog | 5 +++++
src/workbook-view.c | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 7be7f47..979f965 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-08-07 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * src/workbook-view.c (wb_view_new_from_input): save uri for
+ export if appropriate
+
+2012-08-07 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* component/Gnumeric-embed.xml.in: add Repeat Export menu item
* src/GNOME_Gnumeric-gtk.xml.in: add Repeat Export menu item
* src/gui-file.c (gui_file_export_repeat): new
diff --git a/src/workbook-view.c b/src/workbook-view.c
index a3bd75b..d1c843f 100644
--- a/src/workbook-view.c
+++ b/src/workbook-view.c
@@ -1262,6 +1262,10 @@ wb_view_new_from_input (GsfInput *input,
workbook_optimize_style (new_wb);
workbook_recalc (new_wb);
go_doc_set_dirty (GO_DOC (new_wb), FALSE);
+ if (new_wb->file_exporter && optional_uri) {
+ g_free (new_wb->last_export_uri);
+ new_wb->last_export_uri = g_strdup (optional_uri);
+ }
}
} else
go_cmd_context_error_import (GO_CMD_CONTEXT (io_context),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]