public static bool RectangleInsideGdkRegion (RectangleD r, Gdk.Region region) {
			r.Inflate (1.0, 1.0);
			Gdk.Rectangle gdkRect = GdkRectangle (r);
			Gdk.OverlapType type = region.RectIn (gdkRect);

			return (type == Gdk.OverlapType.In || type == Gdk.OverlapType.Part);
		}