Fixed building of catalogs.
[AROS.git] / rom / intuition / setedithook.c
blobf98d3f2bdd08585c112a2c915fdda37e826d137b
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 #include "intuition_intern.h"
9 /*****************************************************************************
11 NAME */
12 #include <proto/intuition.h>
14 AROS_LH1(struct Hook *, SetEditHook,
16 /* SYNOPSIS */
17 AROS_LHA(struct Hook *, hook, A0),
19 /* LOCATION */
20 struct IntuitionBase *, IntuitionBase, 82, Intuition)
22 /* FUNCTION
23 Sets the global (default) string editing hook of intuition
24 string gadgets.
26 INPUTS
27 The stringgagdget editing hook to replace the old one.
29 RESULT
30 The old edit hook.
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 *****************************************************************************/
44 AROS_LIBFUNC_INIT
46 struct Hook *oldhook = GetPrivIBase(IntuitionBase)->GlobalEditHook;
48 GetPrivIBase(IntuitionBase)->GlobalEditHook = hook;
50 return (oldhook);
52 AROS_LIBFUNC_EXIT
53 } /* SetEditHook */