[gnumeric] GUI: Work around missing characters on win32.



commit b64baf355dd3ca75ea256f64c4d4001de8d3eb37
Author: Morten Welinder <terra gnome org>
Date:   Sat Jun 26 15:22:09 2010 -0400

    GUI: Work around missing characters on win32.

 src/widgets/ChangeLog             |   19 ++++++++++++-------
 src/widgets/gnumeric-expr-entry.c |   12 ++++++------
 2 files changed, 18 insertions(+), 13 deletions(-)
---
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index cca9644..a2a7157 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,10 +1,15 @@
+2010-06-26  Morten Welinder  <terra gnome org>
+
+	* gnumeric-expr-entry.c: Switch to triangles for argument markers.
+	Win32 likes that better, somehow.  Fixes #622776.
+
 2010-06-21  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* gnumeric-expr-entry.c (gee_check_tooltip): small fix
 
 2010-06-18  Andreas J. Guelzow <aguelzow pyrshep ca>
 
-	* gnumeric-expr-entry.c (gee_check_tooltip): Handle strings (and 
+	* gnumeric-expr-entry.c (gee_check_tooltip): Handle strings (and
 	  sheet names) better.
 
 2010-06-18  Morten Welinder  <terra gnome org>
@@ -24,12 +29,12 @@
 
 	* gnumeric-expr-entry.c (gee_check_tooltip): don't create tooltip
 	  in what looks like a range selector
-	
+
 2010-06-17  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* gnumeric-expr-entry.c (gee_check_tooltip): don't create tooltip
 	  in range selectors or cell renderers yet.
-	(gee_create_tooltip): drop argument from 
+	(gee_create_tooltip): drop argument from
 	  gnm_func_convert_markup_to_pango
 
 2010-06-16  Morten Welinder <terra gnome org>
@@ -67,7 +72,7 @@
 
 	* gnumeric-expr-entry.c (gee_set_tooltip_argument): new
 	(gee_set_tooltip): use gee_set_tooltip_argument
-	
+
 2010-06-15  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* gnumeric-expr-entry.h (gnm_expr_entry_enable_tips): new
@@ -113,10 +118,10 @@
 
 2010-06-14  Andreas J. Guelzow <aguelzow pyrshep ca>
 
-	* gnumeric-expr-entry.c (gee_delete_tooltip): watch 
-	  for disappearing entries 
+	* gnumeric-expr-entry.c (gee_delete_tooltip): watch
+	  for disappearing entries
 	(cb_gee_key_press_event): gee_set_tooltip will ref the fd
-	
+
 2010-06-14  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* gnumeric-expr-entry.c (_GnmExprEntry): add field
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index 7108bd1..fa76ef5 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -41,8 +41,8 @@
 #include <gdk/gdkkeysyms.h>
 #include <string.h>
 
-#define UNICODE_LEFT_ARROW "\xe2\xac\x85"
-#define UNICODE_RIGHT_ARROW "\xe2\x9e\xa1"
+#define UNICODE_LEFT_TRIANGLE "\xe2\x97\x80"
+#define UNICODE_RIGHT_TRIANGLE "\xe2\x96\xb6"
 #define UNICODE_CROSS_AND_SKULLBONES "\xe2\x98\xa0"
 #define UNICODE_ELLIPSIS "\xe2\x80\xa6"
 
@@ -695,11 +695,11 @@ gee_set_tooltip (GnmExprEntry *gee, GnmFunc *fd, gint args, gboolean had_stuff)
 					(_("%s: %s"),
 					 arg_name,
 					 gnm_func_get_arg_description (fd, i));
-				g_string_append (str, UNICODE_RIGHT_ARROW);
+				g_string_append (str, UNICODE_RIGHT_TRIANGLE);
 			}
 			gee_set_tooltip_argument (str, arg_name, i >= min);
 			if (i == args)
-				g_string_append (str, UNICODE_LEFT_ARROW);
+				g_string_append (str, UNICODE_LEFT_TRIANGLE);
 			g_free (arg_name);
 		} else
 			break;
@@ -709,14 +709,14 @@ gee_set_tooltip (GnmExprEntry *gee, GnmFunc *fd, gint args, gboolean had_stuff)
 			g_string_append_c (str, sep);
 		g_string_append
 			(str, (args >= i && args < max)
-			 ? UNICODE_RIGHT_ARROW UNICODE_ELLIPSIS UNICODE_LEFT_ARROW
+			 ? UNICODE_RIGHT_TRIANGLE UNICODE_ELLIPSIS UNICODE_LEFT_TRIANGLE
 			 : UNICODE_ELLIPSIS);
 	}
 	if (max == 0 && args == 0 && !had_stuff) {
 		extra = g_strdup_printf (_("%s takes no arguments"),
 					 gnm_func_get_name (fd));
 	} else if (args >= max) {
-		g_string_append (str, UNICODE_RIGHT_ARROW UNICODE_CROSS_AND_SKULLBONES UNICODE_LEFT_ARROW);
+		g_string_append (str, UNICODE_RIGHT_TRIANGLE UNICODE_CROSS_AND_SKULLBONES UNICODE_LEFT_TRIANGLE);
 		extra = g_strdup_printf (_("Too many arguments for %s"),
 					 gnm_func_get_name (fd));
 	}



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