1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Ctrl+rightclick now pops up a context menu in Unix PuTTY and pterm.

This menu is not yet fully populated, but it has an About box (yet
another licence location :-/ ) and supports the new configurable
specials menu (thus making Unix PuTTY do one tiny thing which
OpenSSH-in-a-pterm can't :-).

[originally from svn r3062]
This commit is contained in:
Simon Tatham
2003-04-05 16:05:00 +00:00
parent f9f5154e76
commit 30497ff683
9 changed files with 258 additions and 28 deletions

View File

@ -10,23 +10,29 @@
#include "dialog.h"
#include "storage.h"
static void about_handler(union control *ctrl, void *dlg,
void *data, int event)
{
if (event == EVENT_ACTION) {
about_box();
}
}
void unix_setup_config_box(struct controlbox *b, int midsession)
{
struct controlset *s, *s2;
union control *c;
int i;
#ifdef FIXME
if (!midsession) {
/*
* Add the About button to the standard panel.
*/
s = ctrl_getset(b, "", "", "");
c = ctrl_pushbutton(s, "About", 'a', HELPCTX(no_help),
about_handler, P(hwndp));
about_handler, P(NULL));
c->generic.column = 0;
}
#endif
/*
* The Config structure contains two Unix-specific elements