summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-02-21 19:55:54 -0500
committerTingPing <tngpng@gmail.com>2013-02-21 19:55:54 -0500
commit4f9bebc3fa9707ad6f400a7be0f918d0505f8d77 (patch)
treef315c13f5e8c0ef8d9584e935460a27d383c1cde
parentaaf4de7024bca6ba33c54232a584cc165554bc29 (diff)
Only show spelling preferences when supported
-rw-r--r--src/fe-gtk/setup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index e46c5031..f02bc3d7 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -216,6 +216,7 @@ static const setting inputbox_settings[] =
 	{ST_TOGGLE, N_("Show user mode icon in nick box"), P_OFFINTNL(hex_gui_input_icon),0,0,0},
 #if defined(USE_GTKSPELL) || defined(USE_LIBSEXY)
 	{ST_TOGGLE, N_("Spell checking"), P_OFFINTNL(hex_gui_input_spell),0,0,2},
+#ifdef HAVE_ISO_CODES /* Defined with static spelling */
 	{ST_ENTRY,	N_("Dictionaries to use:"), P_OFFSETNL(hex_text_spell_langs),0,0,sizeof prefs.hex_text_spell_langs},
 #ifdef WIN32
 	{ST_LABEL,	N_("Use language codes (as in \"share\\myspell\\dicts\").\nSeparate multiple entries with commas.")},
@@ -223,6 +224,7 @@ static const setting inputbox_settings[] =
 	{ST_LABEL,	N_("Use language codes. Separate multiple entries with commas.")},
 #endif
 #endif
+#endif
 
 	{ST_HEADER, N_("Nick Completion"),0,0,0},
 	{ST_TOGGLE, N_("Automatic nick completion (without TAB key)"), P_OFFINTNL(hex_completion_auto),
@@ -1514,7 +1516,7 @@ setup_create_color_page (void)
 	setup_create_other_color (_("New message:"), COL_NEW_MSG, 10, tab);
 	setup_create_other_colorR (_("Away user:"), COL_AWAY, 10, tab);
 	setup_create_other_color (_("Highlight:"), COL_HILIGHT, 11, tab);
-#if defined(USE_GTKSPELL) || defined(USE_LIBSEXY)
+#ifdef HAVE_ISO_CODES /* Defined with static spelling */
 	setup_create_other_colorR (_("Spell checker:"), COL_SPELL, 11, tab);
 #endif