W3C home > Mailing lists > Public > www-amaya-dev@w3.org > September 2002

Associated action with DocOpen.{Pre,Post} does not run

From: Aguido Horatio Davis <horatio@qpsf.edu.au>
Date: Wed, 11 Sep 2002 08:02:03 +1000 (EST)
To: <www-amaya-dev@w3.org>
Message-ID: <Pine.LNX.4.33.0209110742070.14259-100000@reduce.qpsf.edu.au>


I've added

        DocOpen.Pre -> DocumentOpening;
        DocOpen.Post -> DocumentOpened;

to the DEFAULT section of Amaya/amaya/EDITOR.A and

void DocumentOpened (NotifyDialog *event)
   printf("Document opened.\n");

ThotBool DocumentOpening (NotifyDialog * event)
   printf("Document opening!\n");
   return FALSE;

to Amaya/amaya/HTMLactions.c, and then typed "make" from my build directory.
It built cleanly, and in my object directory:

hobbit:~/amaya-hackery/Amaya/papyrus/amaya> grep DocumentO ED*
EDITOR.A:       DocOpen.Pre -> DocumentOpening;
EDITOR.A:       DocOpen.Post -> DocumentOpened;
EDITORactions.proto:ThotBool DocumentOpening (NotifyDialog *event)
EDITORactions.proto:void DocumentOpened (NotifyDialog *event)
EDITORAPP.c:  TteAddActionEvent (appliActions, 0, TteDocOpen, 1,
EDITORAPP.c:  TteAddActionEvent (appliActions, 0, TteDocOpen, 0,
EDITORAPP.c:extern ThotBool DocumentOpening (NotifyDialog *event);
EDITORAPP.c:extern void DocumentOpened (NotifyDialog *event);
EDITORAPP.c:  TteAddAction ("DocumentOpening", (Proc)DocumentOpening);
EDITORAPP.c:  TteAddAction ("DocumentOpened", (Proc)DocumentOpened);
Binary file EDITORAPP.o matches
EDITOR.SCH:        DocOpen.Pre -> DocumentOpening;
EDITOR.SCH:        DocOpen.Post -> DocumentOpened;

The only problem is that when I open a document using the new binary, no
messages are printed to standard output. A similar diagnostic printf placed
in DocumentClosed works as expected.

Either the diagnostic message is not making it to standard output from my
actions or my actions are not getting run. Could someone please tell
me what I'm doing wrong?


Received on Tuesday, 10 September 2002 18:04:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:48 UTC