Commit 5aa791f1 authored by Morten Welinder's avatar Morten Welinder

GUI: Better tooltip for function without arguments.

parent c79893de
......@@ -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));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment