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:
12
unix/uxcfg.c
12
unix/uxcfg.c
@ -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
|
||||
|
Reference in New Issue
Block a user