[gnumeric] GUI: Better tooltip for function without arguments.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: Better tooltip for function without arguments.
- Date: Wed, 16 Jun 2010 18:34:04 +0000 (UTC)
commit 5aa791f10ea3e9f469220385e62976afb571a0ea
Author: Morten Welinder <terra gnome org>
Date: Wed Jun 16 14:33:40 2010 -0400
GUI: Better tooltip for function without arguments.
src/widgets/gnumeric-expr-entry.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/widgets/gnumeric-expr-entry.c b/src/widgets/gnumeric-expr-entry.c
index 3039b77..37518b6 100644
--- a/src/widgets/gnumeric-expr-entry.c
+++ b/src/widgets/gnumeric-expr-entry.c
@@ -709,7 +709,10 @@ gee_set_tooltip (GnmExprEntry *gee, GnmFunc *fd, gint args)
? UNICODE_RIGHT_ARROW UNICODE_ELLIPSIS UNICODE_LEFT_ARROW
: UNICODE_ELLIPSIS);
}
- if (args >= max) {
+ if (max == 0 && args == 0) {
+ 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);
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]