mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* editcmd.c (edit_raw_key_query): Use straight widget order.
(edit_completion_dialog): Likewise. * editwidget.c (edit): Likewise.
This commit is contained in:
parent
e14f56d71b
commit
e0f9b7ab83
@ -1,3 +1,9 @@
|
||||
2003-09-12 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* editcmd.c (edit_raw_key_query): Use straight widget order.
|
||||
(edit_completion_dialog): Likewise.
|
||||
* editwidget.c (edit): Likewise.
|
||||
|
||||
2003-09-07 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* edit.h: Get rid of WIDGET_COMMAND, update all dependencies.
|
||||
|
@ -550,14 +550,14 @@ edit_raw_key_query (char *heading, char *query, int cancel)
|
||||
struct Dlg_head *raw_dlg =
|
||||
create_dlg (0, 0, 7, w, dialog_colors, raw_callback,
|
||||
NULL, heading,
|
||||
DLG_CENTER | DLG_TRYUP | DLG_WANT_TAB | DLG_REVERSE);
|
||||
DLG_CENTER | DLG_TRYUP | DLG_WANT_TAB);
|
||||
add_widget (raw_dlg,
|
||||
input_new (3 - cancel, w - 5, INPUT_COLOR, 2, "", 0));
|
||||
add_widget (raw_dlg, label_new (3 - cancel, 2, query));
|
||||
if (cancel)
|
||||
add_widget (raw_dlg,
|
||||
button_new (4, w / 2 - 5, B_CANCEL, NORMAL_BUTTON,
|
||||
_("Cancel"), 0));
|
||||
add_widget (raw_dlg, label_new (3 - cancel, 2, query));
|
||||
add_widget (raw_dlg,
|
||||
input_new (3 - cancel, w - 5, INPUT_COLOR, 2, "", 0));
|
||||
run_dlg (raw_dlg);
|
||||
w = raw_dlg->ret_value;
|
||||
destroy_dlg (raw_dlg);
|
||||
@ -2756,7 +2756,7 @@ edit_completion_dialog (WEdit *edit, int max_len, int word_len,
|
||||
compl_dlg =
|
||||
create_dlg (start_y, start_x, compl_dlg_h, compl_dlg_w,
|
||||
dialog_colors, NULL, "[Completion]", NULL,
|
||||
DLG_COMPACT | DLG_REVERSE);
|
||||
DLG_COMPACT);
|
||||
|
||||
/* create the listbox */
|
||||
compl_list =
|
||||
|
@ -187,7 +187,7 @@ edit (const char *_file, int line)
|
||||
/* Create a new dialog and add it widgets to it */
|
||||
edit_dlg =
|
||||
create_dlg (0, 0, LINES, COLS, NULL, edit_dialog_callback,
|
||||
"[Internal File Editor]", NULL, DLG_WANT_TAB | DLG_REVERSE);
|
||||
"[Internal File Editor]", NULL, DLG_WANT_TAB);
|
||||
|
||||
init_widget (&(wedit->widget), 0, 0, LINES - 1, COLS,
|
||||
(callback_fn) edit_callback,
|
||||
@ -206,11 +206,10 @@ edit (const char *_file, int line)
|
||||
break;
|
||||
}
|
||||
edit_menubar = menubar_new (0, 0, COLS, EditMenuBar, N_menus);
|
||||
add_widget (edit_dlg, wedit);
|
||||
|
||||
add_widget (edit_dlg, edit_menubar);
|
||||
|
||||
add_widget (edit_dlg, edit_bar);
|
||||
add_widget (edit_dlg, wedit);
|
||||
add_widget (edit_dlg, edit_menubar);
|
||||
|
||||
run_dlg (edit_dlg);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user