openbsd-ports/x11/openmotif/patches/patch-lib_Xm_TextFunc_c
sebastia f484c9caa3 Fix to build with gcc-2.95
OK jasper@, landry@
2011-06-22 17:22:37 +00:00

37 lines
952 B
Plaintext

$OpenBSD: patch-lib_Xm_TextFunc_c,v 1.1 2011/06/22 17:22:37 sebastia Exp $
fix for build with gcc-2.95
--- lib/Xm/TextFunc.c.orig Tue Jun 21 19:11:59 2011
+++ lib/Xm/TextFunc.c Tue Jun 21 19:22:23 2011
@@ -500,18 +500,19 @@ XmTextPaste(Widget widget)
if (XmIsTextField(widget))
return XmTextFieldPaste(widget);
+ {
+ _XmWidgetToAppContext(widget);
- _XmWidgetToAppContext(widget);
-
- _XmAppLock(app);
- _XmTextResetIC(widget);
- data = ((XmTextWidget) widget)->text.input->data;
+ _XmAppLock(app);
+ _XmTextResetIC(widget);
+ data = ((XmTextWidget) widget)->text.input->data;
- data->selectionMove = FALSE;
- data->selectionLink = FALSE;
- status = XmeClipboardSink(widget, XmCOPY, NULL);
- _XmAppUnlock(app);
- return(status);
+ data->selectionMove = FALSE;
+ data->selectionLink = FALSE;
+ status = XmeClipboardSink(widget, XmCOPY, NULL);
+ _XmAppUnlock(app);
+ return(status);
+ }
}
/*