* view.c: Made the F2 key action much simpler---now it just

toggles between hexview and hexedit mode. Switching between text
	and hex mode can be done with <tab>, as before.
This commit is contained in:
Roland Illig 2005-05-21 10:02:09 +00:00
parent 9d44b75ad5
commit 75691621a6
2 changed files with 8 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2005-05-21 Roland Illig <roland.illig@gmx.de>
* view.c: Made the F2 key action much simpler---now it just
toggles between hexview and hexedit mode. Switching between text
and hex mode can be done with <tab>, as before.
2005-05-20 Pavel Roskin <proski@gnu.org>
* find.c: Fix warnings reported by gcc 4.0.0.

View File

@ -1952,11 +1952,7 @@ static void
toggle_hexedit_mode (WView *view)
{
get_bottom_first (view, 1, 1);
if (view->hexedit_mode) {
view->hexview_in_text = !view->hexview_in_text;
} else {
view->hexedit_mode = !view->hexedit_mode;
}
view->hexedit_mode = !view->hexedit_mode;
view_labels (view);
view->dirty++;
view_update (view);
@ -2235,8 +2231,7 @@ view_labels (WView *view)
if (view->hex_mode)
if (view->hexedit_mode)
my_define (h, 2, view->hexview_in_text ? _("EdHex") : _("EdText"),
toggle_hexedit_mode, view);
my_define (h, 2, _("View"), toggle_hexedit_mode, view);
else {
/* FIXME: add new function view_datasource_is_editable() */
/* FIXME: why is editing in panel mode disabled? */