Gdk.Rectangle GetScreenCoordinates (Gdk.Rectangle caret) { if (parent != null) return GtkUtil.ToScreenCoordinates (parent, parent.GdkWindow, caret); if (xwtParent != null) { return GtkUtil.ToScreenCoordinates (xwtParent, caret.ToXwtRectangle ()); } return Gdk.Rectangle.Zero; }