diff options
Diffstat (limited to 'amiga/gui_options.c')
-rwxr-xr-x | amiga/gui_options.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/amiga/gui_options.c b/amiga/gui_options.c index d2478d67f..7e4cef584 100755 --- a/amiga/gui_options.c +++ b/amiga/gui_options.c @@ -33,6 +33,7 @@ #include "amiga/font.h" #include "amiga/gui.h" #include "amiga/gui_options.h" +#include "amiga/help.h" #include "amiga/theme.h" #include "amiga/utf8.h" #include "utils/messages.h" @@ -1890,6 +1891,16 @@ BOOL ami_gui_opts_event(void) return TRUE; break; + case WMHI_GADGETHELP: + if((result & WMHI_GADGETMASK) == 0) { + /* Pointer not over our window */ + ami_help_open(AMI_HELP_MAIN); + } else { + /* TODO: Make this sensitive to the tab the user is currently on */ + ami_help_open(AMI_HELP_PREFS); + } + break; + case WMHI_GADGETUP: switch(result & WMHI_GADGETMASK) { |