1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 11:02:48 -05:00

Rename dlg_listbox_addwithindex() to dlg_listbox_addwithid(), since the old

name was, not to put too fine a point on it, wrong.

[originally from svn r2997]
This commit is contained in:
Ben Harris
2003-03-25 23:45:56 +00:00
parent 8cf125c96e
commit c8c17d2cef
5 changed files with 17 additions and 17 deletions

View File

@ -323,7 +323,7 @@ void dlg_listbox_del(union control *ctrl, void *dlg, int index)
void dlg_listbox_add(union control *ctrl, void *dlg, char const *text)
{
dlg_listbox_addwithindex(ctrl, dlg, text, 0);
dlg_listbox_addwithid(ctrl, dlg, text, 0);
}
/*
@ -333,8 +333,8 @@ void dlg_listbox_add(union control *ctrl, void *dlg, char const *text)
* strings in any listbox then you MUST not assign them different
* IDs and expect to get meaningful results back.
*/
void dlg_listbox_addwithindex(union control *ctrl, void *dlg,
char const *text, int id)
void dlg_listbox_addwithid(union control *ctrl, void *dlg,
char const *text, int id)
{
struct dlgparam *dp = (struct dlgparam *)dlg;
struct uctrl *uc = dlg_find_byctrl(dp, ctrl);