mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-01 00:54:24 +03:00
* main.c (CmdMenu): don't include edit_user_menu_cmd ()
if USE_INTERNAL_EDIT is not defined (main): call edit_init_file () if USE_INTERNAL_EDIT is defined only (listmode_cmd): messages are localized
This commit is contained in:
parent
3a70604f25
commit
119406157c
@ -1,3 +1,10 @@
|
||||
2000-11-03 Andrew V. Samoilov <sav@bcs.zp.ua>
|
||||
|
||||
* main.c (CmdMenu): don't include edit_user_menu_cmd ()
|
||||
if USE_INTERNAL_EDIT is not defined
|
||||
(main): call edit_init_file () if USE_INTERNAL_EDIT is defined only
|
||||
(listmode_cmd): messages are localized
|
||||
|
||||
2000-11-02 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* layout.c [PORT_NEEDS_CHANGE_SCREEN_SIZE]: Declare
|
||||
|
12
src/main.c
12
src/main.c
@ -1229,15 +1229,15 @@ tree_box (void)
|
||||
|
||||
#ifdef LISTMODE_EDITOR
|
||||
static void
|
||||
listmode_cmd (void)
|
||||
listmode_cmd (void)
|
||||
{
|
||||
char *newmode;
|
||||
newmode = listmode_edit ("half <type,>name,|,size:8,|,perm:4+");
|
||||
message (0, " Listing format edit ", " New mode is \"%s\" ", newmode);
|
||||
message (0, _(" Listing format edit "), _(" New mode is \"%s\" "), newmode);
|
||||
g_free (newmode);
|
||||
}
|
||||
#endif /* LISTMODE_EDITOR */
|
||||
#endif /* HAVE_GNOME */
|
||||
#endif /* !HAVE_GNOME */
|
||||
|
||||
#ifdef HAVE_GNOME
|
||||
void init_menu (void) {};
|
||||
@ -1358,7 +1358,9 @@ static menu_entry CmdMenu [] = {
|
||||
#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}
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
{' ', N_("Menu edi&Tor edit"), 'T', edit_user_menu_cmd}
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
};
|
||||
|
||||
/* Must keep in sync with the constants in menu_cmd */
|
||||
@ -3007,7 +3009,9 @@ main (int argc, char *argv [])
|
||||
}
|
||||
|
||||
vfs_init ();
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
edit_init_file();
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
#ifdef HAVE_X
|
||||
/* NOTE: This call has to be before any our argument handling :) */
|
||||
|
Loading…
Reference in New Issue
Block a user