f484c9caa3
OK jasper@, landry@
37 lines
952 B
Plaintext
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);
|
|
+ }
|
|
}
|
|
|
|
/*
|