|
@@ -909,11 +909,6 @@ query_callback (Dlg_head * h, int Par, int Msg)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static int querylist_callback (void *data)
|
|
|
-{
|
|
|
- return 1;
|
|
|
-}
|
|
|
-
|
|
|
#define DO_INSERTION 1
|
|
|
#define DO_QUERY 2
|
|
|
/* Returns 1 if the user would like to see us again */
|
|
@@ -985,7 +980,7 @@ complete_engine (WInput *in, int what_to_do)
|
|
|
query_dlg = create_dlg (y, x, query_height, query_width,
|
|
|
dialog_colors, query_callback,
|
|
|
"[Completion]", NULL, DLG_COMPACT);
|
|
|
- query_list = listbox_new (1, 1, w - 2, h - 2, 0, querylist_callback);
|
|
|
+ query_list = listbox_new (1, 1, w - 2, h - 2, 0, NULL);
|
|
|
add_widget (query_dlg, query_list);
|
|
|
for (p = in->completions + 1; *p; p++)
|
|
|
listbox_add_item (query_list, 0, 0, *p, NULL);
|