* editdraw.c: Renamed redraw_labels to buttonbar_redraw.

* editwidget.c: Likewise. Renamed define_label_data to
	buttonbar_set_label_data.
This commit is contained in:
Roland Illig 2005-02-08 09:50:16 +00:00
parent 77391f3981
commit e501886d58
3 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2005-02-08 Roland Illig <roland.illig@gmx.de>
* editdraw.c: Renamed redraw_labels to buttonbar_redraw.
* editwidget.c: Likewise. Renamed define_label_data to
buttonbar_set_label_data.
2005-02-08 Roland Illig <roland.illig@gmx.de>
* edit.h: Reformatted #definitions.

View File

@ -29,7 +29,7 @@
#include "../src/color.h" /* EDITOR_NORMAL_COLOR */
#include "../src/tty.h" /* attrset() */
#include "../src/widget.h" /* redraw_labels() */
#include "../src/widget.h" /* buttonbar_redraw() */
#include "../src/key.h" /* is_idle() */
#include "../src/charsets.h"
@ -468,7 +468,7 @@ edit_render (WEdit * edit, int page, int row_start, int col_start, int row_end,
edit->force |= REDRAW_PAGE | REDRAW_IN_BOUNDS;
if (edit->force & REDRAW_COMPLETELY)
redraw_labels (edit->widget.parent);
buttonbar_redraw (edit->widget.parent);
render_edit_text (edit, row_start, col_start, row_end, col_end);
/*
* edit->force != 0 means a key was pending and the redraw

View File

@ -28,7 +28,7 @@
#include "edit-widget.h"
#include "../src/tty.h" /* LINES */
#include "../src/widget.h" /* redraw_labels() */
#include "../src/widget.h" /* buttonbar_redraw() */
#include "../src/menu.h" /* menubar_new() */
#include "../src/key.h" /* is_idle() */
@ -227,7 +227,7 @@ edit_file (const char *_file, int line)
static void edit_my_define (Dlg_head * h, int idx, const char *text,
void (*fn) (WEdit *), WEdit * edit)
{
define_label_data (h, idx, text, (buttonbarfn) fn, edit);
buttonbar_set_label_data (h, idx, text, (buttonbarfn) fn, edit);
}
@ -299,7 +299,7 @@ edit_labels (WEdit *edit)
edit_my_define (h, 9, _("PullDn"), edit_menu_cmd, edit);
edit_my_define (h, 10, _("Quit"), cmd_F10, edit);
redraw_labels (h);
buttonbar_redraw (h);
}
void edit_update_screen (WEdit * e)