--- Gtk2-1.202/xs/GdkX11.xs	2008-10-23 06:19:01.000000000 +1030
+++ Gtk2-1.202/xs/GdkX11-patch1.xs	2009-01-08 19:55:17.000000000 +1030
@@ -27,7 +27,7 @@
  * there is no typemap for Display*, Screen*, etc, and indeed no perl-side
  * functions to manipulate them, so they are out for the time being.
  *
- * XID/XWINDOW is treated as UV.
+ * XID/XWINDOW/XATOM is treated as UV.
  *
  * all XS blocks are wrapped in #ifdef GDK_WINDOWING_X11 to make sure this
  * stuff doesn't exist when wrapping gdk compiled for other backends.
@@ -176,3 +176,31 @@
 #endif /* 2.2.0 */
 
 #endif /* GDK_WINDOWING_X11 */
+
+
+# --------------------------------------------------------------------------- #
+MODULE = Gtk2::Gdk::X11	PACKAGE = Gtk2::Gdk::Atom	PREFIX = gdk_x11_atom_
+
+#ifdef GDK_WINDOWING_X11
+
+#if GTK_CHECK_VERSION (2, 2, 0)
+
+UV
+gdk_x11_atom_to_xatom_for_display (GdkDisplay *display, GdkAtom atom);
+
+#endif /* 2.2.0 */
+
+#ifndef GDK_MULTIHEAD_SAFE
+
+UV
+gdk_x11_atom_to_xatom (GdkAtom atom)
+    ALIAS:
+	XATOM = 1
+    CLEANUP:
+	PERL_UNUSED_VAR (ix);
+
+#endif /* GDK_MULTIHEAD_SAFE */
+
+#endif /* GDK_WINDOWING_X11 */
+
+# --------------------------------------------------------------------------- #
