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



commit 93cb8c4b7b9bc3a3aa614c0228d16c49f64d3ed9
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Jul 18 19:25:58 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 |    2 +-
 src/main.h        |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/main-window.c b/src/main-window.c
index 1f2888e..caf8c6c 100644
--- a/src/main-window.c
+++ b/src/main-window.c
@@ -805,7 +805,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)
 	if (almanah->preferences_dialog == NULL)
 		almanah->preferences_dialog = GTK_WIDGET (almanah_preferences_dialog_new ());
 
diff --git a/src/main.h b/src/main.h
index 8010a97..a8b5913 100644
--- a/src/main.h
+++ b/src/main.h
@@ -47,7 +47,7 @@ typedef struct {
 	GtkWidget *date_entry_dialog;
 	GtkWidget *definition_manager_window;
 	GtkWidget *import_dialog;
-#ifdef ENABLE_ENCRYPTION
+#if defined(ENABLE_ENCRYPTION) || defined(ENABLE_SPELL_CHECKING)
 	GtkWidget *preferences_dialog;
 #endif /* ENABLE_ENCRYPTION */
 



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