[almanah] build: Fix preferences with --enable-spell-checking and --disable-encryption



commit 7d19c7b00b8492684c9814bf160f16755f306911
Author: Philip Withnall <philip tecnocode co uk>
Date:   Tue Jul 19 08:43:38 2011 +0100

    build: Fix preferences with --enable-spell-checking and --disable-encryption
    
    The code to show the dialogue wasn't getting built.

 src/main-window.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/main-window.c b/src/main-window.c
index fc088da..5c63548 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -954,7 +954,7 @@ mw_search_activate_cb (GtkAction *action, AlmanahMainWindow *main_window)
 void
 mw_preferences_activate_cb (GtkAction *action, AlmanahMainWindow *main_window)
 {
-#ifdef ENABLE_ENCRYPTION
+#if defined(ENABLE_ENCRYPTION) || defined(ENABLE_SPELL_CHECKING)
 	AlmanahApplication *application;
 	GSettings *settings;
 	AlmanahPreferencesDialog *dialog;
@@ -968,7 +968,7 @@ mw_preferences_activate_cb (GtkAction *action, AlmanahMainWindow *main_window)
 	gtk_dialog_run (GTK_DIALOG (dialog));
 
 	gtk_widget_destroy (GTK_WIDGET (dialog));
-#endif /* ENABLE_ENCRYPTION */
+#endif /* ENABLE_ENCRYPTION || ENABLE_SPELL_CHECKING */
 }
 
 static void



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