|
Lines 978-989
void XPDFCore::vScrollDragCbk(Widget wid
Link Here
|
| 978 |
void XPDFCore::resizeCbk(Widget widget, XtPointer ptr, XtPointer callData) { |
978 |
void XPDFCore::resizeCbk(Widget widget, XtPointer ptr, XtPointer callData) { |
| 979 |
XPDFCore *core = (XPDFCore *)ptr; |
979 |
XPDFCore *core = (XPDFCore *)ptr; |
| 980 |
XEvent event; |
980 |
XEvent event; |
|
|
981 |
#if 0 |
| 981 |
Widget top; |
982 |
Widget top; |
|
|
983 |
#endif |
| 982 |
Arg args[2]; |
984 |
Arg args[2]; |
| 983 |
int n; |
985 |
int n; |
| 984 |
Dimension w, h; |
986 |
Dimension w, h; |
| 985 |
int sx, sy; |
987 |
int sx, sy; |
| 986 |
|
988 |
|
|
|
989 |
#if 0 |
| 987 |
// find the top-most widget which has an associated window, and look |
990 |
// find the top-most widget which has an associated window, and look |
| 988 |
// for a pending ConfigureNotify in the event queue -- if there is |
991 |
// for a pending ConfigureNotify in the event queue -- if there is |
| 989 |
// one, that means we're still resizing, and we want to skip the |
992 |
// one, that means we're still resizing, and we want to skip the |
|
Lines 996-1001
void XPDFCore::resizeCbk(Widget widget,
Link Here
|
| 996 |
XPutBackEvent(core->display, &event); |
999 |
XPutBackEvent(core->display, &event); |
| 997 |
return; |
1000 |
return; |
| 998 |
} |
1001 |
} |
|
|
1002 |
#endif |
| 999 |
|
1003 |
|
| 1000 |
n = 0; |
1004 |
n = 0; |
| 1001 |
XtSetArg(args[n], XmNwidth, &w); ++n; |
1005 |
XtSetArg(args[n], XmNwidth, &w); ++n; |