1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-01 03:22:48 -05:00

Support for Windows 7 jump lists (right-click on a program's taskbar

icon, even if the program isn't running at the time, to be presented
with an application-defined collection of helpful links). The current
jump list is updated every time a saved session is loaded, and shows
the last few launchable saved sessions (i.e. not those like Default
Settings) that were loaded. Also, if Pageant or PuTTYgen or both is in
the same directory as the PuTTY binary, the jump list will present
links to launch those too.

Based on a patch sent last year by Daniel B. Roy, though it's barely
recognisable any more...

[originally from svn r9046]
This commit is contained in:
Simon Tatham
2010-12-23 17:32:28 +00:00
parent 6cd24c839d
commit 1a03fa9292
9 changed files with 962 additions and 11 deletions

15
putty.h
View File

@ -666,6 +666,10 @@ GLOBAL int default_port;
* This is set TRUE by cmdline.c iff a session is loaded with "-load".
*/
GLOBAL int loaded_session;
/*
* This is set to the name of the loaded session.
*/
GLOBAL char *cmdline_session_name;
struct RSAKey; /* be a little careful of scope */
@ -1246,4 +1250,15 @@ void expire_timer_context(void *ctx);
int run_timers(long now, long *next);
void timer_change_notify(long next);
/*
* Define no-op macros for the jump list functions, on platforms that
* don't support them. (This is a bit of a hack, and it'd be nicer to
* localise even the calls to those functions into the Windows front
* end, but it'll do for the moment.)
*/
#ifndef JUMPLIST_SUPPORTED
#define add_session_to_jumplist(x) ((void)0)
#define remove_session_from_jumplist(x) ((void)0)
#endif
#endif