[gnumeric] GUI: Add style optimizer to debug button.



commit 7168e96c9eea8426c29a2486a7fef6f1619cda17
Author: Morten Welinder <terra gnome org>
Date:   Thu Apr 28 15:36:46 2011 -0400

    GUI: Add style optimizer to debug button.

 src/wbc-gtk.c |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index bc422e8..dca7172 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -2217,6 +2217,13 @@ cb_workbook_debug_info (WBCGtk *wbcg)
 			    es->nodes_in, es->nodes_stored, es->nodes_killed);
 		gnm_expr_sharer_destroy (es);
 	}
+
+	if (gnm_debug_flag ("style-optimize")) {
+		WORKBOOK_FOREACH_SHEET (wb, sheet, (
+			{
+				sheet_style_optimize (sheet);
+			}));
+	}
 }
 
 static void
@@ -2791,7 +2798,9 @@ wbc_gtk_create_edit_area (WBCGtk *wbcg)
 		 _("Enter formula..."));
 
 	/* Dependency debugger */
-	if (gnm_debug_flag ("deps") || gnm_debug_flag ("expr-sharer")) {
+	if (gnm_debug_flag ("deps") ||
+	    gnm_debug_flag ("expr-sharer") ||
+	    gnm_debug_flag ("style-optimize")) {
 		(void)edit_area_button (wbcg, tb, TRUE,
 					G_CALLBACK (cb_workbook_debug_info),
 					GTK_STOCK_DIALOG_INFO,



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