summaryrefslogtreecommitdiff
path: root/src/Geometry.c
diff options
context:
space:
mode:
authorKaleb Keithley <kaleb@freedesktop.org>2003-11-26 22:48:39 +0000
committerKaleb Keithley <kaleb@freedesktop.org>2003-11-26 22:48:39 +0000
commitb90c05162b5edd08338a060f5777419654fa6d2e (patch)
tree346b8c7439d7d8db30404ad9f4db4c4e1725c252 /src/Geometry.c
parenta6bdd56c5b098599942e4091ae7e2af2d4631b44 (diff)
merge latest (4.3.99.16) from XFree86 (vendor) branch
Diffstat (limited to 'src/Geometry.c')
-rw-r--r--src/Geometry.c48
1 files changed, 5 insertions, 43 deletions
diff --git a/src/Geometry.c b/src/Geometry.c
index d07f1e1..f25c2e4 100644
--- a/src/Geometry.c
+++ b/src/Geometry.c
@@ -58,7 +58,7 @@ used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.
*/
-/* $XFree86: xc/lib/Xt/Geometry.c,v 1.12 2001/12/14 19:56:15 dawes Exp $ */
+/* $XFree86: xc/lib/Xt/Geometry.c,v 1.13 2003/04/21 16:34:27 herrb Exp $ */
#include "IntrinsicI.h"
#include "ShellP.h"
@@ -492,7 +492,6 @@ XtGeometryResult XtMakeGeometryRequest (widget, request, reply)
return ((r == XtGeometryDone) ? XtGeometryYes : r);
}
-#if NeedFunctionPrototypes
XtGeometryResult
XtMakeResizeRequest(
Widget widget,
@@ -500,13 +499,6 @@ XtMakeResizeRequest(
_XtDimension height,
Dimension *replyWidth,
Dimension *replyHeight)
-#else
-XtGeometryResult
-XtMakeResizeRequest (widget, width, height, replyWidth, replyHeight)
- Widget widget;
- Dimension width, height;
- Dimension *replyWidth, *replyHeight;
-#endif
{
XtWidgetGeometry request, reply;
XtGeometryResult r;
@@ -580,37 +572,22 @@ void XtResizeWindow(w)
UNLOCK_APP(app);
} /* XtResizeWindow */
-#if NeedFunctionPrototypes
void XtResizeWidget(
Widget w,
_XtDimension width,
_XtDimension height,
- _XtDimension borderWidth
- )
-#else
-void XtResizeWidget(w, width, height, borderWidth)
- Widget w;
- Dimension width, height, borderWidth;
-#endif
+ _XtDimension borderWidth)
{
XtConfigureWidget(w, w->core.x, w->core.y, width, height, borderWidth);
} /* XtResizeWidget */
-#if NeedFunctionPrototypes
void XtConfigureWidget(
Widget w,
_XtPosition x,
_XtPosition y,
_XtDimension width,
_XtDimension height,
- _XtDimension borderWidth
- )
-#else
-void XtConfigureWidget(w, x, y, width, height, borderWidth)
- Widget w;
- Position x, y;
- Dimension width, height, borderWidth;
-#endif
+ _XtDimension borderWidth)
{
XtConfigureHookDataRec req;
Widget hookobj;
@@ -699,36 +676,21 @@ void XtConfigureWidget(w, x, y, width, height, borderWidth)
UNLOCK_APP(app);
} /* XtConfigureWidget */
-#if NeedFunctionPrototypes
void XtMoveWidget(
Widget w,
_XtPosition x,
- _XtPosition y
- )
-#else
-void XtMoveWidget(w, x, y)
- Widget w;
- Position x, y;
-#endif
+ _XtPosition y)
{
XtConfigureWidget(w, x, y, w->core.width, w->core.height,
w->core.border_width);
} /* XtMoveWidget */
-#if NeedFunctionPrototypes
void XtTranslateCoords(
register Widget w,
_XtPosition x,
_XtPosition y,
register Position *rootx, /* return */
- register Position *rooty /* return */
- )
-#else
-void XtTranslateCoords(w, x, y, rootx, rooty)
- register Widget w;
- Position x, y;
- register Position *rootx, *rooty; /* return */
-#endif
+ register Position *rooty) /* return */
{
Position garbagex, garbagey;
XtAppContext app = XtWidgetToApplicationContext(w);