summaryrefslogtreecommitdiff
path: root/src/TMgrab.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2005-02-21 21:08:27 +0000
committerMatthieu Herrb <matthieu.herrb@laas.fr>2005-02-21 21:08:27 +0000
commit85eb751e4e1683af6cee3ee9dce29f74911a639d (patch)
treeb40f699ee646462a8f223b919ba68dda1d8fc371 /src/TMgrab.c
parent94150cb72d9d641c64325cd70323d93b9a3701a5 (diff)
Convert lib/Xt to ANSI C (Thomas Dickey). Fixes for a few valgrind warningsXORG-6_8_99_3XORG-6_8_99_2XORG-6_8_99_1
(Thomas Dickey).
Diffstat (limited to 'src/TMgrab.c')
-rw-r--r--src/TMgrab.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/TMgrab.c b/src/TMgrab.c
index 7ccb187..601e0bb 100644
--- a/src/TMgrab.c
+++ b/src/TMgrab.c
@@ -6,13 +6,13 @@ Copyright 1993 by Sun Microsystems, Inc. Mountain View, CA.
All Rights Reserved
-Permission to use, copy, modify, and distribute this software and its
-documentation for any purpose and without fee is hereby granted,
+Permission to use, copy, modify, and distribute this software and its
+documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
-both that copyright notice and this permission notice appear in
+both that copyright notice and this permission notice appear in
supporting documentation, and that the names of Digital or Sun not be
used in advertising or publicity pertaining to distribution of the
-software without specific, written prior permission.
+software without specific, written prior permission.
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
@@ -184,7 +184,7 @@ static Boolean DoGrab(
UNLOCK_PROCESS;
return False;
}
-
+
switch (typeMatch->eventType) {
case ButtonPress:
case ButtonRelease:
@@ -207,15 +207,15 @@ static Boolean DoGrab(
None
);
break;
-
+
case KeyPress:
case KeyRelease:
GrabAllCorrectKeys(widget, typeMatch, modMatch, grabP);
break;
-
+
case EnterNotify:
break;
-
+
default:
XtAppWarningMsg(XtWidgetToApplicationContext(widget),
"invalidPopup","unsupportedOperation",XtCXtToolkitError,
@@ -227,8 +227,8 @@ static Boolean DoGrab(
return False;
}
-void _XtRegisterGrabs(widget)
- Widget widget;
+void _XtRegisterGrabs(
+ Widget widget)
{
XtTranslations xlations = widget->core.tm.translations;
TMComplexStateTree *stateTreePtr;
@@ -243,14 +243,14 @@ void _XtRegisterGrabs(widget)
/* walk the widget instance action bindings table looking for */
/* actions registered as grab actions. */
/* when you find one, do a grab on the triggering event */
-
+
if (xlations == NULL) return;
stateTreePtr = (TMComplexStateTree *) xlations->stateTreeTbl;
if (*stateTreePtr == NULL) return;
for (i = 0; i < xlations->numStateTrees; i++, stateTreePtr++) {
- if (bindData->simple.isComplex)
+ if (bindData->simple.isComplex)
procs = TMGetComplexBindEntry(bindData, i)->procs;
- else
+ else
procs = TMGetSimpleBindEntry(bindData, i)->procs;
for (count=0; count < (*stateTreePtr)->numQuarks; count++) {
GrabActionRec* grabP;
@@ -259,9 +259,9 @@ void _XtRegisterGrabs(widget)
LOCK_PROCESS;
for (grabP = grabActionList; grabP != NULL; grabP = grabP->next) {
if (grabP->action_proc == procs[count]) {
- /* we've found a "grabber" in the action table. Find the
- * states that call this action. Note that if there is
- * more than one "grabber" in the action table, we end
+ /* we've found a "grabber" in the action table. Find the
+ * states that call this action. Note that if there is
+ * more than one "grabber" in the action table, we end
* up searching all of the states multiple times.
*/
doGrab.widget = widget;
@@ -278,7 +278,7 @@ void _XtRegisterGrabs(widget)
}
void XtRegisterGrabAction(
- XtActionProc action_proc,
+ XtActionProc action_proc,
_XtBoolean owner_events,
unsigned int event_mask,
int pointer_mode,
@@ -318,8 +318,8 @@ void XtRegisterGrabAction(
}
/*ARGSUSED*/
-void _XtGrabInitialize(app)
- XtAppContext app;
+void _XtGrabInitialize(
+ XtAppContext app)
{
LOCK_PROCESS;
if (grabActionList == NULL)