* cmd.c (info_cmd_no_menu): Toggle info screen.

(quick_cmd_no_menu): Toggle quick view.
This commit is contained in:
Pavel Roskin 2002-08-22 00:27:14 +00:00
parent 1f423be341
commit 83b5c737aa
2 changed files with 15 additions and 2 deletions

View File

@ -1,5 +1,8 @@
2002-08-21 Pavel Roskin <proski@gnu.org>
* cmd.c (info_cmd_no_menu): Toggle info screen.
(quick_cmd_no_menu): Toggle quick view.
* help.c (interactive_display): Always show button bar.
* widget.c (buttonbar_callback): Fix a bug that prevented the

View File

@ -1442,13 +1442,23 @@ configure_panel_listing (WPanel *p, int view_type, int use_msformat, char *user,
void
info_cmd_no_menu (void)
{
set_display_type (cpanel == left_panel ? 1 : 0, view_info);
if (get_display_type (0) == view_info)
set_display_type (0, view_listing);
else if (get_display_type (1) == view_info)
set_display_type (1, view_listing);
else
set_display_type (cpanel == left_panel ? 1 : 0, view_info);
}
void
quick_cmd_no_menu (void)
{
set_display_type (cpanel == left_panel ? 1 : 0, view_quick);
if (get_display_type (0) == view_quick)
set_display_type (0, view_listing);
else if (get_display_type (1) == view_quick)
set_display_type (1, view_listing);
else
set_display_type (cpanel == left_panel ? 1 : 0, view_quick);
}
void