From 72ee09cb0eafeb667753913da1b6a89fd83f7133 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Tue, 4 Jun 2013 15:17:47 +0000
Subject: [PATCH] tweak

---
 Fltk/optionWindow.cpp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Fltk/optionWindow.cpp b/Fltk/optionWindow.cpp
index f951697b0b..5c12f19805 100644
--- a/Fltk/optionWindow.cpp
+++ b/Fltk/optionWindow.cpp
@@ -1677,7 +1677,11 @@ optionWindow::optionWindow(int deltaFontSize)
 
       static Fl_Menu_Item menu_font_engine[] = {
         {"Native",   0, 0, 0},
-        {"Cairo",    0, 0, 0},
+        {"Cairo",    0, 0, 0
+#if !defined(HAVE_CAIRO)
+         , FL_MENU_INACTIVE
+#endif
+        },
         {"StringTexture",    0, 0, 0},
         {0}
       };
@@ -1686,9 +1690,6 @@ optionWindow::optionWindow(int deltaFontSize)
       general.choice[7]->menu(menu_font_engine);
       general.choice[7]->align(FL_ALIGN_RIGHT);
       general.choice[7]->callback(general_options_ok_cb);
-#if !defined(HAVE_CAIRO)
-      general.choice[7]->deactivate();
-#endif
 
       int w1 = (int)(4. * IW / 5.), w2 = IW - w1;
       general.choice[1] = new Fl_Choice(L + 2 * WB, 2 * WB + 10 * BH, w1, BH);
-- 
GitLab