[gnumeric] 2009-04-20 Morten Welinder <terra gnome org>



commit 5b08f8c3a0858f07bb4f57d485e6d6a277b7512f
Author: Morten Welinder <terra gnome org>
Date:   Mon Apr 20 16:38:16 2009 -0400

    2009-04-20  Morten Welinder  <terra gnome org>
    
    	* src/wbc-gtk-actions.c (wbc_gtk_init_actions): Disable solver
    	action if compiled without the solver.
---
 ChangeLog             |    5 +++++
 src/wbc-gtk-actions.c |   14 +++++++++-----
 2 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 06dba81..542a449 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-04-20  Morten Welinder  <terra gnome org>
+
+	* src/wbc-gtk-actions.c (wbc_gtk_init_actions): Disable solver
+	action if compiled without the solver.
+
 2009-04-20  Jean Brefort  <jean brefort normalesup org>
 
 	* libspreadsheet.pc.in: use -lspreadsheet-$(VERSION) instead of
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index 37430ff..772424d 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -2509,14 +2509,18 @@ wbc_gtk_init_actions (WBCGtk *wbcg)
 	wbcg->font_actions = gtk_action_group_new ("FontActions");
 	gtk_action_group_set_translation_domain (wbcg->font_actions, GETTEXT_PACKAGE);
 
-	  gtk_action_group_add_actions (wbcg->permanent_actions,
+	gtk_action_group_add_actions (wbcg->permanent_actions,
 		permanent_actions, G_N_ELEMENTS (permanent_actions), wbcg);
-	  gtk_action_group_add_actions (wbcg->actions,
+	gtk_action_group_add_actions (wbcg->actions,
 		actions, G_N_ELEMENTS (actions), wbcg);
-	  gtk_action_group_add_toggle_actions (wbcg->actions,
+	gtk_action_group_add_toggle_actions (wbcg->actions,
 		toggle_actions, G_N_ELEMENTS (toggle_actions), wbcg);
-	  gtk_action_group_add_toggle_actions (wbcg->font_actions,
+	gtk_action_group_add_toggle_actions (wbcg->font_actions,
 		font_toggle_actions, G_N_ELEMENTS (font_toggle_actions), wbcg);
 
-	  wbc_gtk_init_alignments (wbcg);
+	wbc_gtk_init_alignments (wbcg);
+
+#ifndef GNM_ENABLE_SOLVER
+	wbc_gtk_set_action_sensitivity (wbcg, "ToolsSolver", FALSE);
+#endif
 }



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