(single_menu_item) [!HAVE_BOXES]: Enable emulation of toggle boxes and
authorEli Zaretskii <eliz@gnu.org>
Fri, 5 Sep 2008 14:42:05 +0000 (14:42 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 5 Sep 2008 14:42:05 +0000 (14:42 +0000)
radio buttons on MS-DOS as well.

src/ChangeLog
src/menu.c

index ff10dd9..307015e 100644 (file)
@@ -1,3 +1,8 @@
+2008-09-05  Eli Zaretskii  <eliz@gnu.org>
+
+       * menu.c (single_menu_item) [!HAVE_BOXES]: Enable emulation of
+       toggle boxes and radio buttons on MS-DOS as well.
+
 2008-09-05  Kenichi Handa  <handa@m17n.org>
 
        * composite.c (autocmp_chars): Check lookback count.
index 13deec5..056fd77 100644 (file)
@@ -365,7 +365,7 @@ single_menu_item (key, item, dummy, skp_v)
       return;
     }
 
-#ifdef HAVE_X_WINDOWS
+#if defined(HAVE_X_WINDOWS) || defined(MSDOS)
 #ifndef HAVE_BOXES
   /* Simulate radio buttons and toggle boxes by putting a prefix in
      front of them.  */
@@ -435,7 +435,7 @@ single_menu_item (key, item, dummy, skp_v)
     item_string = concat2 (item_string, build_string (" >"));
 #endif
 
-#endif /* HAVE_X_WINDOWS */
+#endif /* HAVE_X_WINDOWS || MSDOS */
 
   push_menu_item (item_string, enabled, key,
                  XVECTOR (item_properties)->contents[ITEM_PROPERTY_DEF],