* view.c (view_handle_editkey): Fix prototype.

(toggle_hex_mode): Don't mess with parent's flags - it can
permanently disable Tab switch between panels.
(view): Use DLG_WANT_TAB for full screen only, unconditionally.
This commit is contained in:
Pavel Roskin 2003-10-24 06:06:10 +00:00
parent 849ef55ae7
commit 52045633b3
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2003-10-24 Pavel Roskin <proski@gnu.org>
* view.c (view_handle_editkey): Fix prototype.
(toggle_hex_mode): Don't mess with parent's flags - it can
permanently disable Tab switch between panels.
(view): Use DLG_WANT_TAB for full screen only, unconditionally.
2003-10-23 Pavel Roskin <proski@gnu.org>
* tree.h: Don't include treestore.h. Fix sources to include

View File

@ -343,7 +343,7 @@ enqueue_change (struct hexedit_change_node **head,
static void move_right (WView *);
static cb_ret_t
view_handle_editkey (WView *view, unsigned char key)
view_handle_editkey (WView *view, int key)
{
struct hexedit_change_node *node;
unsigned char byte_val;
@ -1982,10 +1982,8 @@ toggle_hex_mode (WView *view)
view->start_display -= view->start_display % view->bytes_per_line;
view->edit_cursor = view->start_display;
view->widget.options |= W_WANT_CURSOR;
view->widget.parent->flags |= DLG_WANT_TAB;
} else {
view->start_display = view->start_save;
view->widget.parent->flags &= ~DLG_WANT_TAB;
view->widget.options &= ~W_WANT_CURSOR;
}
altered_hex_mode = 1;
@ -2598,7 +2596,7 @@ view (const char *_command, const char *_file, int *move_dir_p, int start_line)
/* Create dialog and widgets, put them on the dialog */
view_dlg =
create_dlg (0, 0, LINES, COLS, NULL, view_dialog_callback,
"[Internal File Viewer]", NULL, DLG_NONE);
"[Internal File Viewer]", NULL, DLG_WANT_TAB);
wview = view_new (0, 0, COLS, LINES - 1, 0);