* listmode.c, listmode.h, main.c: Consistently using define

LISTMODE_EDITOR to enable the experimental listmode editor.
* main.c: Don't allow two adjacent separators in the Command
menu.
This commit is contained in:
Pavel Roskin 2000-09-26 22:38:13 +00:00
parent c3edb91d89
commit 3263fee6d4
4 changed files with 21 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2000-09-26 Pavel Roskin <proski@gnu.org>
* listmode.c, listmode.h, main.c: Consistently using define
LISTMODE_EDITOR to enable the experimental listmode editor.
* main.c: Don't allow two adjacent separators in the Command
menu.
2000-09-22 Pavel Roskin <proski@gnu.org>
* fixhlp.c: Removed.

View File

@ -20,6 +20,9 @@
*/
#include <config.h>
#ifdef LISTMODE_EDITOR
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
@ -325,3 +328,5 @@ char *listmode_edit (char *oldlistformat)
listmode_done ();
return newformat;
}
#endif /* LISTMODE_EDITOR */

View File

@ -1,6 +1,8 @@
#ifndef __LISTMODE_H
#define __LISTMODE_H
#ifdef LISTMODE_EDITOR
char *listmode_edit (char*);
#endif /* LISTMODE_EDITOR */
#endif
#endif /* __LISTMODE_H */

View File

@ -1226,9 +1226,8 @@ tree_box (void)
g_free (sel_dir);
}
}
#endif
#if SOMEDAY_WE_WILL_FINISH_THIS_CODE
#ifdef LISTMODE_EDITOR
static void
listmode_cmd (void)
{
@ -1237,7 +1236,8 @@ static void
message (0, " Listing format edit ", " New mode is \"%s\" ", newmode);
g_free (newmode);
}
#endif
#endif /* LISTMODE_EDITOR */
#endif /* HAVE_GNOME */
#ifdef HAVE_GNOME
void init_menu (void) {};
@ -1350,10 +1350,12 @@ static menu_entry CmdMenu [] = {
#ifdef USE_EXT2FSLIB
{ ' ', N_("&Undelete files (ext2fs only)"), 'U', undelete_cmd },
#endif
#ifdef VERSION_4
#ifdef LISTMODE_EDITOR
{ ' ', N_("&Listing format edit"), 'L', listmode_cmd},
#endif
#if defined (USE_EXT2FSLIB) || defined (LISTMODE_EDITOR)
{ ' ', "", ' ', 0 },
#endif
{ ' ', N_("&Extension file edit"), 'E', ext_cmd },
{ ' ', N_("&Menu file edit"), 'M', menu_edit_cmd },
{' ', N_("Menu edi&Tor edit"), 'T', edit_user_menu_cmd}