[gnumeric] GUI: Fix problem with pristine, but saved, file.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: Fix problem with pristine, but saved, file.
- Date: Mon, 15 Nov 2010 17:53:08 +0000 (UTC)
commit b7c45220646ff2cf83d3227c68a88b9c05e1691c
Author: Morten Welinder <terra gnome org>
Date: Mon Nov 15 12:52:41 2010 -0500
GUI: Fix problem with pristine, but saved, file.
ChangeLog | 5 +++++
NEWS | 1 +
src/gui-file.c | 6 +++++-
3 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index ef428c2..7ce6165 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-11-15 Morten Welinder <terra gnome org>
+
+ * src/gui-file.c (gui_file_save_as): Clear "pristine" flag. Fixes
+ #634792.
+
2010-11-12 Morten Welinder <terra gnome org>
* src/gnm-so-filled.c (so_filled_view_set_bounds): Ensure that
diff --git a/NEWS b/NEWS
index 6b89f0b..b1e0c2f 100644
--- a/NEWS
+++ b/NEWS
@@ -32,6 +32,7 @@ Morten:
* Fix gtk+/X crash with large tooltips.
* Take care of dead kittens.
* Fix text object clipping issue. [#634597]
+ * Fix problem with disappearing window for empty file. [#634792]
Sameer Morar:
* Add key combinations to move sheets. [#634139]
diff --git a/src/gui-file.c b/src/gui-file.c
index 16632dd..a044b2a 100644
--- a/src/gui-file.c
+++ b/src/gui-file.c
@@ -577,6 +577,8 @@ gui_file_save_as (WBCGtk *wbcg, WorkbookView *wb_view)
if (wbcg2)
wbcg2->current_saver = fs;
workbook_update_history (wb);
+ /* See 634792. */
+ go_doc_set_pristine (GO_DOC (wb), FALSE);
}
}
@@ -615,8 +617,10 @@ gui_file_save (WBCGtk *wbcg, WorkbookView *wb_view)
g_object_ref (wb);
ok = wb_view_save (wb_view, GO_CMD_CONTEXT (wbcg));
- if (ok)
+ if (ok) {
workbook_update_history (wb);
+ go_doc_set_pristine (GO_DOC (wb), FALSE);
+ }
g_object_unref (wb);
return ok;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]