* main.c [HAVE_GNOME]: Disable more code.

* cmd.c [HAVE_GNOME]: Likewise.
This commit is contained in:
Pavel Roskin 2001-05-15 00:53:48 +00:00
parent b0a82c83b5
commit cc8fa6552a
3 changed files with 7 additions and 12 deletions

View File

@ -1,5 +1,8 @@
2001-05-14 Pavel Roskin <proski@gnu.org>
* main.c [HAVE_GNOME]: Disable more code.
* cmd.c [HAVE_GNOME]: Likewise.
* background.h: Omit definitions that require FileOpContext if
fileopctx.h has not been included yet.

View File

@ -612,6 +612,7 @@ void unselect_cmd (void)
unselect_cmd_panel (cpanel);
}
#ifndef HAVE_GNOME
/* Check if the file exists */
/* If not copy the default */
static int check_for_default(char *default_file, char *file)
@ -633,7 +634,6 @@ static int check_for_default(char *default_file, char *file)
return 0;
}
#ifndef HAVE_GNOME
void ext_cmd (void)
{
char *buffer;
@ -659,7 +659,6 @@ void ext_cmd (void)
g_free (extdir);
flush_extension_file ();
}
#endif /* !HAVE_GNOME */
/* where = 0 - do edit a file menu for mc */
/* where = 1 - do edit a file menu for cool edit */
@ -712,15 +711,14 @@ void quick_chdir_cmd (void)
if (!target)
return;
#ifndef HAVE_GNOME
if (get_current_type () == view_tree)
tree_chdir (the_tree, target);
else
#endif
if (!do_cd (target, cd_exact))
message (1, MSG_ERROR, _("Could not change directory") );
g_free (target);
}
#endif /* !HAVE_GNOME */
#ifdef USE_VFS
void free_vfs_now (void)
@ -878,6 +876,7 @@ void compare_dirs_cmd (void)
}
}
#ifndef HAVE_GNOME
void history_cmd (void)
{
Listbox *listbox;
@ -916,14 +915,12 @@ void history_cmd (void)
update_input (input_w (cmdline), 1);
}
#if !defined(HAVE_XVIEW) && !defined(HAVE_GNOME)
void swap_cmd (void)
{
swap_panels ();
touchwin (stdscr);
repaint_screen ();
}
#endif
void
view_other_cmd (void)
@ -1018,6 +1015,7 @@ view_other_cmd (void)
repaint_screen ();
}
}
#endif /* !HAVE_GNOME */
#ifndef OS2_NT
static void

View File

@ -1293,7 +1293,6 @@ static menu_entry RightMenu [] = {
{ ' ', N_("&Rescan C-r"), 'R', reread_cmd }
};
#ifndef HAVE_GNOME
static menu_entry FileMenu [] = {
{ ' ', N_("&User menu F2"), 'U', user_file_menu_cmd },
{ ' ', N_("&View F3"), 'V', view_cmd },
@ -1320,7 +1319,6 @@ static menu_entry FileMenu [] = {
{ ' ', "", ' ', 0 },
{ ' ', N_("e&Xit F10"), 'X', (callfn) quit_cmd }
};
#endif
void external_panelize (void);
static menu_entry CmdMenu [] = {
@ -1328,9 +1326,7 @@ static menu_entry CmdMenu [] = {
* as a panel still has some problems, I have not yet finished
* the WTree widget port, sorry.
*/
#ifndef HAVE_GNOME
{ ' ', N_("&Directory tree"), 'D', tree_box },
#endif
{ ' ', N_("&Find file M-?"), 'F', find_cmd },
{ ' ', N_("s&Wap panels C-u"), 'W', swap_cmd },
{ ' ', N_("switch &Panels on/off C-o"), 'P', view_other_cmd },
@ -1423,9 +1419,7 @@ done_menu (void)
#endif
}
}
#endif
#ifndef HAVE_GNOME
static void
menu_last_selected_cmd (void)
{