[almanah/almanah-0-7] build: Fix compilation with --disable-spell-checking



commit cdd7b1c45d1b82d4ff44eb04c736159ec402ee1c
Author: Philip Withnall <philip tecnocode co uk>
Date:   Mon Jul 18 19:26:50 2011 +0100

    build: Fix compilation with --disable-spell-checking

 src/preferences-dialog.c |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/preferences-dialog.c b/src/preferences-dialog.c
index 5884a82..959f759 100644
--- a/src/preferences-dialog.c
+++ b/src/preferences-dialog.c
@@ -40,11 +40,12 @@ static void pd_key_combo_changed_cb (GtkComboBox *combo_box, AlmanahPreferencesD
 static void pd_new_key_button_clicked_cb (GtkButton *button, AlmanahPreferencesDialog *preferences_dialog);
 #endif /* ENABLE_ENCRYPTION */
 #ifdef ENABLE_SPELL_CHECKING
-static void pd_response_cb (GtkDialog *dialog, gint response_id, AlmanahPreferencesDialog *preferences_dialog);
 static void spell_checking_enabled_notify_cb (GConfClient *client, guint connection_id, GConfEntry *entry, AlmanahPreferencesDialog *self);
 static void pd_spell_checking_enabled_check_button_toggled_cb (GtkToggleButton *toggle_button, gpointer user_data);
 #endif /* ENABLE_SPELL_CHECKING */
 
+static void pd_response_cb (GtkDialog *dialog, gint response_id, AlmanahPreferencesDialog *preferences_dialog);
+
 struct _AlmanahPreferencesDialogPrivate {
 #ifdef ENABLE_ENCRYPTION
 	CryptUIKeyset *keyset;
@@ -260,12 +261,7 @@ pd_new_key_button_clicked_cb (GtkButton *button, AlmanahPreferencesDialog *prefe
 }
 #endif /* ENABLE_ENCRYPTION */
 
-static void
-pd_response_cb (GtkDialog *dialog, gint response_id, AlmanahPreferencesDialog *preferences_dialog)
-{
-	gtk_widget_hide_all (GTK_WIDGET (dialog));
-}
-
+#ifdef ENABLE_SPELL_CHECKING
 static void
 spell_checking_enabled_notify_cb (GConfClient *client, guint connection_id, GConfEntry *entry, AlmanahPreferencesDialog *self)
 {
@@ -306,3 +302,10 @@ pd_spell_checking_enabled_check_button_toggled_cb (GtkToggleButton *toggle_butto
 	gconf_client_set_bool (almanah->gconf_client, "/apps/almanah/spell_checking_enabled",
 			       gtk_toggle_button_get_active (toggle_button), NULL);
 }
+#endif /* ENABLE_SPELL_CHECKING */
+
+static void
+pd_response_cb (GtkDialog *dialog, gint response_id, AlmanahPreferencesDialog *preferences_dialog)
+{
+	gtk_widget_hide_all (GTK_WIDGET (dialog));
+}



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