[goffice] GUI: Fix problem with format "GENERAL".



commit 53f1b2f1839db8523d8b0f5d696916b003bfd1b2
Author: Morten Welinder <terra gnome org>
Date:   Mon May 17 13:32:33 2010 -0400

    GUI: Fix problem with format "GENERAL".

 ChangeLog                   |    5 +++++
 goffice/gtk/go-format-sel.c |    5 +++++
 2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 50c1543..25bbea9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-17  Morten Welinder  <terra gnome org>
+
+	* goffice/gtk/go-format-sel.c (find_builtin): Special-case
+	case-challenged variants of "General".
+
 2010-05-17  Jean Brefort  <jean brefort normalesup org>
 
 	* goffice/goffice.h: applied patch from Bobby Powers: fix without-gtk
diff --git a/goffice/gtk/go-format-sel.c b/goffice/gtk/go-format-sel.c
index b5c1a9a..c28e8df 100644
--- a/goffice/gtk/go-format-sel.c
+++ b/goffice/gtk/go-format-sel.c
@@ -382,6 +382,11 @@ find_builtin (const char *fmtstr, int page, gboolean def)
 		list_elem++;
 	}
 
+	if (candidates[list_elem] == NULL &&
+	    page == GO_FORMAT_GENERAL &&
+	    g_ascii_strcasecmp (candidates[0], fmtstr) == 0)
+		list_elem = 0; /* "GENERAL" */
+
 	if (candidates[list_elem] == NULL && def)
 		list_elem = 0;
 



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