1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

big dialogs: set_curosr2 -> set_dlg_cursor.

This commit is contained in:
Witold Filipczyk 2008-09-07 18:16:15 +02:00 committed by Witold Filipczyk
parent cd35fa79fc
commit ca073bf5ca
5 changed files with 5 additions and 5 deletions

View File

@ -298,7 +298,7 @@ display_button(struct dialog_data *dlg_data, struct widget_data *widget_data)
draw_dlg_text(term, dlg_data, x + len, pos->y, BUTTON_RIGHT,
BUTTON_RIGHT_LEN, 0, color);
if (sel) {
set_cursor2(term, dlg_data, x, pos->y, 1);
set_dlg_cursor(term, dlg_data, x, pos->y, 1);
set_dlg_window_ptr(dlg_data, dlg_data->win, pos->x, pos->y);
}
return EVENT_PROCESSED;

View File

@ -81,7 +81,7 @@ display_checkbox(struct dialog_data *dlg_data, struct widget_data *widget_data)
draw_dlg_text(term, dlg_data, pos->x, pos->y, text, CHECKBOX_LEN, 0, color);
if (selected) {
set_cursor2(term, dlg_data, pos->x + 1, pos->y, 1);
set_dlg_cursor(term, dlg_data, pos->x + 1, pos->y, 1);
set_dlg_window_ptr(dlg_data, dlg_data->win, pos->x, pos->y);
}

View File

@ -399,7 +399,7 @@ display_text(struct dialog_data *dlg_data, struct widget_data *widget_data)
/* Hope this is at least a bit reasonable. Set cursor
* and window pointer to start of the first text line. */
set_cursor2(win->term, dlg_data, widget_data->box.x, widget_data->box.y, 1);
set_dlg_cursor(win->term, dlg_data, widget_data->box.x, widget_data->box.y, 1);
set_dlg_window_ptr(dlg_data, win, widget_data->box.x, widget_data->box.y);
return EVENT_PROCESSED;

View File

@ -598,7 +598,7 @@ set_cursor(struct terminal *term, int x, int y, int blockable)
}
void
set_cursor2(struct terminal *term, struct dialog_data *dlg_data, int x, int y, int blockable)
set_dlg_cursor(struct terminal *term, struct dialog_data *dlg_data, int x, int y, int blockable)
{
struct box *box = &dlg_data->real_box;

View File

@ -297,7 +297,7 @@ void draw_line(struct terminal *term, int x, int y, int length,
void set_cursor(struct terminal *term, int x, int y, int blockable);
/* set cursor for dialogs */
void set_cursor2(struct terminal *term, struct dialog_data *dlg_data, int x, int y, int blockable);
void set_dlg_cursor(struct terminal *term, struct dialog_data *dlg_data, int x, int y, int blockable);
/** Blanks the screen. */
void clear_terminal(struct terminal *);