diff options
author | Matthieu Herrb <matthieu.herrb@laas.fr> | 2005-02-21 21:08:27 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu.herrb@laas.fr> | 2005-02-21 21:08:27 +0000 |
commit | 85eb751e4e1683af6cee3ee9dce29f74911a639d (patch) | |
tree | b40f699ee646462a8f223b919ba68dda1d8fc371 /src/Popup.c | |
parent | 94150cb72d9d641c64325cd70323d93b9a3701a5 (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/Popup.c')
-rw-r--r-- | src/Popup.c | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/src/Popup.c b/src/Popup.c index 055175b..d7bd94f 100644 --- a/src/Popup.c +++ b/src/Popup.c @@ -29,13 +29,13 @@ Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts. 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 name of Digital 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 @@ -105,7 +105,7 @@ void XtPopup (Widget widget, XtGrabKind grab_kind) (String *)NULL, (Cardinal *)NULL); grab_kind = XtGrabNone; } - + _XtPopup(widget, grab_kind, FALSE); hookobj = XtHooksOfDisplay(XtDisplay(widget)); @@ -115,14 +115,14 @@ void XtPopup (Widget widget, XtGrabKind grab_kind) call_data.type = XtHpopup; call_data.widget = widget; call_data.event_data = (XtPointer)grab_kind; - XtCallCallbackList(hookobj, - ((HookObject)hookobj)->hooks.changehook_callbacks, + XtCallCallbackList(hookobj, + ((HookObject)hookobj)->hooks.changehook_callbacks, (XtPointer)&call_data); } } /* XtPopup */ -void XtPopupSpringLoaded (widget) - Widget widget; +void XtPopupSpringLoaded ( + Widget widget) { Widget hookobj; @@ -134,14 +134,14 @@ void XtPopupSpringLoaded (widget) call_data.type = XtHpopupSpringLoaded; call_data.widget = widget; - XtCallCallbackList(hookobj, - ((HookObject)hookobj)->hooks.changehook_callbacks, + XtCallCallbackList(hookobj, + ((HookObject)hookobj)->hooks.changehook_callbacks, (XtPointer)&call_data); } } -void XtPopdown(widget) - Widget widget; +void XtPopdown( + Widget widget) { /* Unmap a shell widget if it is mapped, and remove from grab list */ Widget hookobj; @@ -174,17 +174,17 @@ void XtPopdown(widget) call_data.type = XtHpopdown; call_data.widget = widget; - XtCallCallbackList(hookobj, - ((HookObject)hookobj)->hooks.changehook_callbacks, + XtCallCallbackList(hookobj, + ((HookObject)hookobj)->hooks.changehook_callbacks, (XtPointer)&call_data); } } /* XtPopdown */ /* ARGSUSED */ -void XtCallbackPopdown(widget, closure, call_data) - Widget widget; - XtPointer closure; - XtPointer call_data; +void XtCallbackPopdown( + Widget widget, + XtPointer closure, + XtPointer call_data) { register XtPopdownID id = (XtPopdownID) closure; @@ -193,6 +193,3 @@ void XtCallbackPopdown(widget, closure, call_data) XtSetSensitive(id->enable_widget, TRUE); } } /* XtCallbackPopdown */ - - - |