X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=libchimara%2Fgestalt.c;h=a9412c38b769c3c69ad6136d914804f39565105e;hb=fd6a5678cd76248b44a3d24b7ca9da897bd34037;hp=1729a878350c9c333eab0f88d6ea321583f61bbd;hpb=e0c5d896646b95cc5dc6ed57ee3b75a2063c83d1;p=projects%2Fchimara%2Fchimara.git diff --git a/libchimara/gestalt.c b/libchimara/gestalt.c index 1729a87..a9412c3 100644 --- a/libchimara/gestalt.c +++ b/libchimara/gestalt.c @@ -103,16 +103,25 @@ glk_gestalt_ext(glui32 sel, glui32 val, glui32 *arr, glui32 arrlen) /* Timer capabilities present */ case gestalt_Timer: return 1; + + /* Hyperlink capabilities present */ + case gestalt_Hyperlinks: + return 1; + + /* Hyperlinks supported on textbuffers and textgrids */ + case gestalt_HyperlinkInput: + return val == wintype_TextBuffer || val == wintype_TextGrid; + + /* Mouse support present in textgrids */ + case gestalt_MouseInput: + return val == wintype_TextGrid; /* Unsupported capabilities */ - case gestalt_MouseInput: case gestalt_Graphics: case gestalt_DrawImage: case gestalt_Sound: case gestalt_SoundVolume: case gestalt_SoundNotify: - case gestalt_Hyperlinks: - case gestalt_HyperlinkInput: case gestalt_SoundMusic: case gestalt_GraphicsTransparency: /* Selector not supported */