Commit d5c5d5d1 authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow

mark optional arguments in expr entry too; tip

2010-06-15  Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* gnumeric-expr-entry.c (gee_set_tooltip_argument): new
	(gee_set_tooltip): use gee_set_tooltip_argument
parent 7fc73970
......@@ -48,9 +48,6 @@ Short term goals
- undo of cell range cut over clipboard
http://live.gnome.org/Academic
- ={A1:A3+rand()} only calls rand() once.
- validate names to ensure that they are not :
: simple values (eg TRUE)
: Range refs (even in other conventions) eg 'A1' or 'R'
Misc stuff that should be fixed
-------------------------------
......@@ -59,8 +56,7 @@ Misc stuff that should be fixed
- Freeze panes (tricky this is a view attribute)
- `Add Scenario' Portion of Solver
- Workbook attr changes
- Adding autofilters
- cols/rows
: Make unhide smarter to find hidden regions on either side of
selected ranges.
......@@ -112,9 +108,6 @@ Pending Patches
Blocked Patches
---------------
http://bugzilla.gnome.org/show_bug.cgi?id=84062
- XIM menu, blocking on gtk changes
-------------------------------------------------------------------------------
Architecture Changes
--------------------
......@@ -346,8 +339,8 @@ Architecture Changes
- Suport >100 style for SUBTOTAL
- docs
: Translate each arg name + description seperately to get better
commonality.
: Translate description paragraphs seperately to allow better grouping.
commonality. (DONE)
: Translate description paragraphs seperately to allow better grouping.( DONE)
: Make 'func is foo compatible' a flag on the importers
: func_help [] = { (DONE)
{ ARG, N_("issue:The issue date of the underlying bond") },
......
2010-06-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* 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
......
......@@ -656,6 +656,16 @@ gee_create_tooltip (GnmExprEntry *gee, gchar const *str)
return tip;
}
static void
gee_set_tooltip_argument (GString *str, char *arg, gboolean optional)
{
if (optional)
g_string_append_c (str, '[');
g_string_append (str, arg);
if (optional)
g_string_append_c (str, ']');
}
static void
gee_set_tooltip (GnmExprEntry *gee, GnmFunc *fd, gint args)
{
......@@ -689,10 +699,10 @@ gee_set_tooltip (GnmExprEntry *gee, GnmFunc *fd, gint args)
g_string_append_c (str, sep);
if (i == args) {
g_string_append (str, "\xe2\x9e\xa1");
g_string_append (str, arg_name);
gee_set_tooltip_argument (str, arg_name, i >= min);
g_string_append (str, "\xe2\xac\x85");
} else
g_string_append (str, arg_name);
gee_set_tooltip_argument (str, arg_name, i >= min);
g_free (arg_name);
} else
break;
......
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