+#include "wx/log.h"
+#include "wx/gtk1/private.h"
+
+
+// ----------------------------------------------------------------------------
+// wxGdkRegion: creates a new region in ctor and destroys in dtor
+// ----------------------------------------------------------------------------
+
+class wxGdkRegion
+{
+public:
+ wxGdkRegion() { m_region = gdk_region_new(); }
+ ~wxGdkRegion() { gdk_region_destroy(m_region); }
+
+ operator GdkRegion *() const { return m_region; }
+
+private:
+ GdkRegion *m_region;
+};