6b69e3097d
"Motif 2.3.4 is an updated version of Open Motif 2.3 and is a major bug fix release." Keeping current package naming (openmotif) for now. Feedback from pascal@ naddy@
37 lines
949 B
Plaintext
37 lines
949 B
Plaintext
$OpenBSD: patch-lib_Xm_TextFunc_c,v 1.2 2012/10/28 11:05:45 sthen Exp $
|
|
|
|
fix for build with gcc-2.95
|
|
|
|
--- lib/Xm/TextFunc.c.orig Mon Oct 22 15:50:34 2012
|
|
+++ lib/Xm/TextFunc.c Wed Oct 24 21:19:02 2012
|
|
@@ -487,18 +487,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);
|
|
+ }
|
|
}
|
|
|
|
/*
|