--- gtk+-2.24.20/gdk/Makefile.am.orig	2013-07-28 23:30:01.983082000 +0000
+++ gtk+-2.24.20/gdk/Makefile.am	2013-07-29 00:06:24.167684200 +0000
@@ -207,7 +207,9 @@
 Gdk_3_0_gir_FILES = $(introspection_files)
 Gdk_3_0_gir_CFLAGS = $(INCLUDES)
 INTROSPECTION_GIRS += Gdk-3.0.gir
-
+if OS_WIN32
+Gdk_3_0_gir_CFLAGS += -I$(srcdir)/win32 -I$(srcdir)
+endif
 if USE_X11
 x11_introspection_files = 		\
 	x11/checksettings.c		\
@@ -253,6 +255,59 @@
 
 endif # USE_X11
 
+if OS_WIN32
+w32_introspection_files = 		\
+	win32/gdkcursor-win32.c \
+       win32/gdkdevicemanager-win32.c \
+       \
+       win32/gdkdevice-virtual.c \
+       \
+       win32/gdkdevice-win32.c \
+       \
+       win32/gdkdevice-wintab.c \
+       \
+       win32/gdkdisplaymanager-win32.c \
+	win32/gdkdisplay-win32.c \
+	win32/gdkdnd-win32.c \
+	win32/gdkevents-win32.c \
+	win32/gdkgeometry-win32.c \
+	win32/gdkglobals-win32.c \
+	win32/gdkinput.c \
+	win32/gdkkeys-win32.c \
+	win32/gdkmain-win32.c \
+	win32/gdkproperty-win32.c \
+	win32/gdkscreen-win32.c \
+	win32/gdkselection-win32.c \
+	win32/gdktestutils-win32.c \
+	win32/gdkvisual-win32.c \
+	win32/gdkwin32.h \
+       win32/gdkwin32cursor.h \
+       win32/gdkwin32display.h \
+       win32/gdkwin32displaymanager.h \
+       win32/gdkwin32dnd.h \
+	win32/gdkwin32id.c \
+       win32/gdkwin32keys.h \
+       win32/gdkwin32misc.h \
+       win32/gdkwin32screen.h \
+       win32/gdkwin32window.h \
+	win32/gdkwindow-win32.c
+
+
+GdkWin32-3.0.gir: libgdk-3.la Gdk-3.0.gir Makefile
+GdkWin32_3_0_gir_SCANNERFLAGS = \
+	--identifier-prefix=Gdk		\
+	--c-include="gdk/gdkwin32.h"	\
+	--include-uninstalled=$(top_builddir)/gdk/Gdk-3.0.gir
+GdkWin32_3_0_gir_INCLUDES = Gio-2.0 GdkPixbuf-2.0 Pango-1.0
+GdkWin32_3_0_gir_LIBS = libgdk-3.la
+GdkWin32_3_0_gir_FILES = $(w32_introspection_files)
+GdkWin32_3_0_gir_CFLAGS = $(AM_CPPFLAGS) -L$(top_builddir)/gdk -I$(srcdir)/win32 -I$(srcdir)
+INTROSPECTION_GIRS += GdkWin32-3.0.gir
+
+
+
+endif # OS_WIN32
+
 girdir = $(datadir)/gir-1.0
 gir_DATA = $(INTROSPECTION_GIRS)
 
