1
1

* boxes.c: Fix remaining old-style calls to create_dlg().

* complete.c: Likewise.
* main.c: Likewise.
* view.c: Likewise.
Этот коммит содержится в:
Pavel Roskin 2002-09-03 20:19:22 +00:00
родитель 67c6e3e64d
Коммит 556f733f12
5 изменённых файлов: 16 добавлений и 12 удалений

Просмотреть файл

@ -1,5 +1,10 @@
2002-09-03 Pavel Roskin <proski@gnu.org>
* boxes.c: Fix remaining old-style calls to create_dlg().
* complete.c: Likewise.
* main.c: Likewise.
* view.c: Likewise.
* wtools.c: Remove Chooser, its unused.
* dlg.c: Fix the case when the dialog has no title.

Просмотреть файл

@ -665,7 +665,7 @@ tree_box (char *current_dir)
/* Create the components */
dlg = create_dlg (0, 0, TREE_Y, TREE_X, dialog_colors,
tree_callback, "[Directory Tree]", "tree", DLG_CENTER);
tree_callback, "[Directory Tree]", NULL, DLG_CENTER);
mytree = tree_new (0, 2, 2, TREE_Y - 6, TREE_X - 5);
add_widget (dlg, mytree);
bar = buttonbar_new(1);

Просмотреть файл

@ -994,7 +994,7 @@ complete_engine (WInput *in, int what_to_do)
query_width = w;
query_dlg = create_dlg (y, x, query_height, query_width,
dialog_colors, query_callback,
"[Completion]", "complete", DLG_COMPACT);
"[Completion]", NULL, DLG_COMPACT);
query_list = listbox_new (1, 1, w - 2, h - 2, 0, querylist_callback, NULL);
add_widget (query_dlg, query_list);
for (p = in->completions + 1; *p; p++)

Просмотреть файл

@ -1920,7 +1920,7 @@ do_nc (void)
midnight_colors [3] = NORMAL_COLOR; /* HOT_FOCUSC */
midnight_dlg = create_dlg (0, 0, LINES, COLS, midnight_colors,
midnight_callback, "[main]", "midnight",
midnight_callback, "[main]", NULL,
DLG_HAS_MENUBAR);
/* Check if we were invoked as an editor or file viewer */

Просмотреть файл

@ -2394,17 +2394,16 @@ view (char *_command, const char *_file, int *move_dir_p, int start_line)
WView *wview;
WButtonBar *bar;
Dlg_head *our_dlg;
/* Create dialog and widgets, put them on the dialog */
our_dlg = create_dlg (0, 0, LINES, COLS, NULL,
view_mode_callback, "[Internal File Viewer]",
"view",
DLG_NONE);
our_dlg =
create_dlg (0, 0, LINES, COLS, NULL, view_mode_callback,
"[Internal File Viewer]", NULL, DLG_NONE);
view_dlg = our_dlg;
wview = view_new (0, 0, COLS, LINES-1, 0);
wview = view_new (0, 0, COLS, LINES - 1, 0);
bar = buttonbar_new (1);
bar = buttonbar_new (1);
add_widget (our_dlg, wview);
add_widget (our_dlg, bar);
@ -2417,13 +2416,13 @@ view (char *_command, const char *_file, int *move_dir_p, int start_line)
* you have to modify view_adjust_size to
* be aware of it
*/
if (!error){
if (!error) {
run_dlg (our_dlg);
if (move_dir_p)
*move_dir_p = wview->move_dir;
}
destroy_dlg (our_dlg);
return !error;
}