--- /dev/null
+--- gtk+-2.15.0.orig/gtk/gtkstatusicon.c 2009-01-01 19:41:45.000000000 +0000
++++ gtk+-2.15.0/gtk/gtkstatusicon.c 2009-01-23 19:03:37.000000000 +0000
+@@ -707,11 +707,13 @@
+ button = 3;
+ goto buttondown0;
+
++#ifdef WM_XBUTTONDOWN
+ case WM_XBUTTONDOWN:
+ if (HIWORD (wparam) == XBUTTON1)
+ button = 4;
+ else
+ button = 5;
++#endif
+
+ buttondown0:
+ bc = g_new (ButtonCallbackData, 1);
+@@ -733,11 +735,13 @@
+ button = 3;
+ goto buttonup0;
+
++#ifdef WM_XBUTTONUP
+ case WM_XBUTTONUP:
+ if (HIWORD (wparam) == XBUTTON1)
+ button = 4;
+ else
+ button = 5;
++#endif
+
+ buttonup0:
+ bc = g_new (ButtonCallbackData, 1);
# wine %{_mingw32_bindir}/gdk-pixbuf-query-loaders.exe > gdk-pixbuf.loaders
Source1: gdk-pixbuf.loaders
+# Fix use of extended buttons in gtkstatusicon.
+Patch1000: mingw32-gtk2-2.15.0-xbuttons.patch
+
BuildArch: noarch
BuildRequires: mingw32-filesystem >= 40
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
-BuildRequires: mingw32-iconv
+
+BuildRequires: mingw32-atk >= 1.13.0
+BuildRequires: mingw32-cairo >= 1.8.0
BuildRequires: mingw32-gettext
BuildRequires: mingw32-glib2 >= 2.17.7
-BuildRequires: mingw32-cairo >= 1.8.0
+BuildRequires: mingw32-iconv
BuildRequires: mingw32-jasper
-BuildRequires: mingw32-libpng >= 1.2.2
BuildRequires: mingw32-libjpeg
+BuildRequires: mingw32-libpng >= 1.2.2
BuildRequires: mingw32-pango >= 1.20.0
-BuildRequires: mingw32-atk >= 1.13.0
BuildRequires: pkgconfig
+
# Native one for msgfmt
BuildRequires: gettext
# Native one for glib-genmarsjal
%prep
%setup -q -n gtk+-%{version}
+%patch1000 -p1
+
%build
# Need to run the correct version of glib-mkenums.