mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Implement get_window_title().
[originally from svn r2525]
This commit is contained in:
parent
c342678579
commit
0d8ee2458a
@ -1,4 +1,4 @@
|
|||||||
/* $Id: macterm.c,v 1.38 2003/01/09 22:51:41 ben Exp $ */
|
/* $Id: macterm.c,v 1.39 2003/01/09 23:29:22 ben Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1999 Simon Tatham
|
* Copyright (c) 1999 Simon Tatham
|
||||||
* Copyright (c) 1999, 2002 Ben Harris
|
* Copyright (c) 1999, 2002 Ben Harris
|
||||||
@ -1402,9 +1402,12 @@ void get_window_pixels(void *frontend, int *x, int *y)
|
|||||||
char *get_window_title(void *frontend, int icon)
|
char *get_window_title(void *frontend, int icon)
|
||||||
{
|
{
|
||||||
Session *s = frontend;
|
Session *s = frontend;
|
||||||
|
Str255 ptitle;
|
||||||
|
static char title[256];
|
||||||
|
|
||||||
/* Erm, we don't save this at the moment */
|
GetWTitle(s->window, ptitle);
|
||||||
return "";
|
p2cstrcpy(title, ptitle);
|
||||||
|
return title;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user