+#ifdef __WXGTK__
+void ScintillaWX::ClipChildren(wxDC& dc, PRectangle rect) {
+ wxRegion rgn(wxRectFromPRectangle(rect));
+ if (ac.Active()) {
+ wxRect childRect = ((wxWindow*)ac.lb->GetID())->GetRect();
+ rgn.Subtract(childRect);
+ }
+ if (ct.inCallTipMode) {
+ wxWindow* tip = (wxWindow*)ct.wCallTip.GetID();
+ wxRect childRect = tip->GetRect();
+#if wxUSE_POPUPWIN && wxSTC_USE_POPUP
+ tip->GetParent()->ScreenToClient(&childRect.x, &childRect.y);
+#endif
+ rgn.Subtract(childRect);
+ }
+
+ dc.SetClippingRegion(rgn);
+}
+#else
+void ScintillaWX::ClipChildren(wxDC& WXUNUSED(dc), PRectangle WXUNUSED(rect)) {
+}
+#endif
+