[gnumeric] Sheet: mark dirty when tab colours are changed.



commit cbd3c7714ca1226b4b1a88b665441971e01602e7
Author: Morten Welinder <terra gnome org>
Date:   Thu Jun 10 09:23:22 2010 -0400

    Sheet: mark dirty when tab colours are changed.

 ChangeLog   |    5 +++++
 NEWS        |    1 +
 src/sheet.c |    9 +++++++++
 3 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 57d0e90..b0745c0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-10  Morten Welinder  <terra gnome org>
+
+	* src/sheet.c (gnm_sheet_set_property): Mark sheet dirty in more
+	circumstances.  Fixes #621191.
+
 2010-06-09  Morten Welinder  <terra gnome org>
 
 	* src/wbc-gtk.c (wbcg_notebook_tabs_visibility): Use
diff --git a/NEWS b/NEWS
index 4d0df9e..c7bf3cb 100644
--- a/NEWS
+++ b/NEWS
@@ -25,6 +25,7 @@ Morten:
 	* Fix dependency tabulation undo issue.
 	* Fix critical when inserting graph using keys.
 	* Automate win32 help generation.
+	* Mark a sheet dirty when its tab colour is changed.  [#621191]
 
 --------------------------------------------------------------------------
 Gnumeric 1.10.5
diff --git a/src/sheet.c b/src/sheet.c
index 2f3fae9..c6c458c 100644
--- a/src/sheet.c
+++ b/src/sheet.c
@@ -141,6 +141,8 @@ sheet_set_direction (Sheet *sheet, gboolean text_is_rtl)
 	if (text_is_rtl == sheet->text_is_rtl)
 		return;
 
+	sheet_mark_dirty (sheet);
+
 	sheet->text_is_rtl = text_is_rtl;
 	sheet->priv->reposition_objects.col = 0;
 	sheet_range_calc_spans (sheet,
@@ -186,6 +188,7 @@ sheet_set_conventions (Sheet *sheet, GnmConventions const *convs)
 		re_render_formulas (sheet);
 	SHEET_FOREACH_VIEW (sheet, sv,
 		sv->edit_pos_changed.content = TRUE;);
+	sheet_mark_dirty (sheet);
 }
 
 GnmConventions const *
@@ -211,7 +214,9 @@ sheet_set_hide_zeros (Sheet *sheet, gboolean hide)
 	hide = !!hide;
 	if (sheet->hide_zero == hide)
 		return;
+
 	sheet->hide_zero = hide;
+	sheet_mark_dirty (sheet);
 
 	sheet_cell_foreach (sheet, (GHFunc)cb_sheet_set_hide_zeros, NULL);
 }
@@ -362,7 +367,9 @@ sheet_set_display_formulas (Sheet *sheet, gboolean display)
 	display = !!display;
 	if (sheet->display_formulas == display)
 		return;
+
 	sheet->display_formulas = display;
+	sheet_mark_dirty (sheet);
 	if (!sheet->being_constructed)
 		sheet_scale_changed (sheet, TRUE, FALSE);
 }
@@ -487,12 +494,14 @@ gnm_sheet_set_property (GObject *object, guint property_id,
 		GnmColor *color = g_value_dup_boxed (value);
 		style_color_unref (sheet->tab_text_color);
 		sheet->tab_text_color = color;
+		sheet_mark_dirty (sheet);
 		break;
 	}
 	case PROP_TAB_BACKGROUND: {
 		GnmColor *color = g_value_dup_boxed (value);
 		style_color_unref (sheet->tab_color);
 		sheet->tab_color = color;
+		sheet_mark_dirty (sheet);
 		break;
 	}
 	case PROP_ZOOM_FACTOR:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]