mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Give the config window a title.
[originally from svn r5181]
This commit is contained in:
parent
15e7d71f39
commit
f8dfe9717c
@ -35,6 +35,7 @@
|
|||||||
#include <Navigation.h>
|
#include <Navigation.h>
|
||||||
#include <Resources.h>
|
#include <Resources.h>
|
||||||
#include <StandardFile.h>
|
#include <StandardFile.h>
|
||||||
|
#include <TextUtils.h>
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -54,6 +55,7 @@ void mac_newsession(void)
|
|||||||
Session *s;
|
Session *s;
|
||||||
WinInfo *wi;
|
WinInfo *wi;
|
||||||
static struct sesslist sesslist;
|
static struct sesslist sesslist;
|
||||||
|
Str255 mactitle;
|
||||||
|
|
||||||
s = snew(Session);
|
s = snew(Session);
|
||||||
memset(s, 0, sizeof(*s));
|
memset(s, 0, sizeof(*s));
|
||||||
@ -85,6 +87,8 @@ void mac_newsession(void)
|
|||||||
wi->adjustmenus = &macctrl_adjustmenus;
|
wi->adjustmenus = &macctrl_adjustmenus;
|
||||||
wi->close = &mac_closedlg;
|
wi->close = &mac_closedlg;
|
||||||
SetWRefCon(s->settings_window, (long)wi);
|
SetWRefCon(s->settings_window, (long)wi);
|
||||||
|
c2pstrcpy(mactitle, "PuTTY Configuration");
|
||||||
|
SetWTitle(s->settings_window, mactitle);
|
||||||
ShowWindow(s->settings_window);
|
ShowWindow(s->settings_window);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user