[gnumeric] avoid having function placeholders in the function help browser



commit b331371c8761c341b18a9c62c31fd95a5e461c09
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Jul 21 22:00:59 2010 -0600

    avoid having function placeholders in the function help browser
    
    2010-07-21  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/func.h (GNM_FUNC_RECALC_ONLOAD): not used
    
    2010-07-21  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* dialog-function-select.c (dialog_function_select_load_tree): dont load
    	  placeholders

 ChangeLog                            |    4 ++++
 src/dialogs/ChangeLog                |    5 +++++
 src/dialogs/dialog-function-select.c |    3 ++-
 src/func.h                           |    2 +-
 4 files changed, 12 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 38655e5..c88887e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2010-07-21  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* src/func.h (GNM_FUNC_RECALC_ONLOAD): not used
+
+2010-07-21  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* src/func.c (gnm_func_get_description): new
 	* src/func.h (gnm_func_get_description): new
 	* src/symbol.c (symbol_names_cb): new
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 539cb43..f83f177 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,10 @@
 2010-07-21  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* dialog-function-select.c (dialog_function_select_load_tree): dont load
+	  placeholders
+
+2010-07-21  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* dialog-function-select.c (cb_dialog_function_select_destroy): handle
 	  new field of state
 	(dialog_function_select_init): load new field of state
diff --git a/src/dialogs/dialog-function-select.c b/src/dialogs/dialog-function-select.c
index ea57ddb..10aadba 100644
--- a/src/dialogs/dialog-function-select.c
+++ b/src/dialogs/dialog-function-select.c
@@ -1111,7 +1111,8 @@ dialog_function_select_load_tree (FunctionSelectState *state)
 
 	for (ptr = funcs; ptr; ptr = ptr->next) {
 		func = ptr->data;
-		if (!(func->flags & GNM_FUNC_INTERNAL)) {
+		if (!(func->flags & 
+		      (GNM_FUNC_INTERNAL | GNM_FUNC_IS_PLACEHOLDER))) {
 			gtk_list_store_append (state->model_functions, &iter);
 			gnm_func_ref (func);
 			desc = dialog_function_select_get_description (func, &pal);
diff --git a/src/func.h b/src/func.h
index 7516b22..f45d3bc 100644
--- a/src/func.h
+++ b/src/func.h
@@ -81,7 +81,7 @@ typedef enum {
 	 * unexpectedly when we recalc later.  This probably needs to be done
 	 * on a per import format basis.  It may not belong here.
 	 */
-	GNM_FUNC_RECALC_ONLOAD		= 1 << 2,
+/* 	GNM_FUNC_RECALC_ONLOAD		= 1 << 2, */
 
 	/* an unknown function that will hopefully be defined later */
 	GNM_FUNC_IS_PLACEHOLDER		= 1 << 3,



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