[gnumeric] debug: make it easy to debug underlines.



commit c68f0db4f90a880ed9e1d6e6a1454b9d326a2844
Author: Morten Welinder <terra gnome org>
Date:   Tue Apr 12 15:49:02 2011 -0400

    debug: make it easy to debug underlines.

 src/wbc-gtk.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index edf2d56..1404aee 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -5912,7 +5912,8 @@ wbc_gtk_init (GObject *obj)
 	/* updates the undo/redo menu labels before check_underlines
 	 * to avoid problems like #324692. */
 	wb_control_undo_redo_labels (WORKBOOK_CONTROL (wbcg), NULL, NULL);
-	if (GNM_VERSION_MAJOR % 2) {
+	if (GNM_VERSION_MAJOR % 2 != 0 ||
+	    gnm_debug_flag ("underlines")) {
 		gtk_container_foreach (GTK_CONTAINER (wbcg->menu_zone),
 				       (GtkCallback)check_underlines,
 				       (gpointer)"");



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