1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-05 21:42:47 -05:00

And everyone's favourite cosmetic change: Unix PuTTY now doesn't

claim to be pterm in the window title :-)

[originally from svn r3032]
This commit is contained in:
Simon Tatham
2003-03-31 11:42:45 +00:00
parent 0ec4f0620d
commit 3a41ec782e
4 changed files with 23 additions and 12 deletions

View File

@ -2309,11 +2309,6 @@ int pt_main(int argc, char **argv)
inst->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
if (inst->cfg.wintitle[0])
set_title(inst, inst->cfg.wintitle);
else
set_title(inst, "pterm");
/*
* Set up the colour map.
*/
@ -2413,10 +2408,19 @@ int pt_main(int argc, char **argv)
inst->back = select_backend(&inst->cfg);
{
char *realhost; /* FIXME: don't ignore this! */
char *realhost;
inst->back->init((void *)inst->term, &inst->backhandle, &inst->cfg,
inst->cfg.host, inst->cfg.port, &realhost,
inst->cfg.tcp_nodelay);
if (inst->cfg.wintitle[0])
set_title(inst, inst->cfg.wintitle);
else {
char *title = make_default_wintitle(realhost);
set_title(inst, title);
sfree(title);
}
}
inst->back->provide_logctx(inst->backhandle, inst->logctx);