mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-03 04:22:47 -05:00
New typedef 'dlgcontrol' wrapping 'union control'.
I'm about to change my mind about whether its top-level nature is struct or union, and rather than change the key word 'union' to 'struct' at every point of use, it's nicer to just get rid of the keyword completely. So it has a shiny new name.
This commit is contained in:
@ -10,7 +10,7 @@
|
||||
#include "dialog.h"
|
||||
#include "storage.h"
|
||||
|
||||
static void about_handler(union control *ctrl, dlgparam *dlg,
|
||||
static void about_handler(dlgcontrol *ctrl, dlgparam *dlg,
|
||||
void *data, int event)
|
||||
{
|
||||
if (event == EVENT_ACTION) {
|
||||
@ -21,7 +21,7 @@ static void about_handler(union control *ctrl, dlgparam *dlg,
|
||||
void gtk_setup_config_box(struct controlbox *b, bool midsession, void *win)
|
||||
{
|
||||
struct controlset *s, *s2;
|
||||
union control *c;
|
||||
dlgcontrol *c;
|
||||
int i;
|
||||
|
||||
if (!midsession) {
|
||||
@ -59,7 +59,7 @@ void gtk_setup_config_box(struct controlbox *b, bool midsession, void *win)
|
||||
if (i < s->ncontrols-2) {
|
||||
c = s->ctrls[s->ncontrols-1];
|
||||
memmove(s->ctrls+i+2, s->ctrls+i+1,
|
||||
(s->ncontrols-i-2)*sizeof(union control *));
|
||||
(s->ncontrols-i-2)*sizeof(dlgcontrol *));
|
||||
s->ctrls[i+1] = c;
|
||||
}
|
||||
break;
|
||||
|
Reference in New Issue
Block a user