[PATCH] gtk-2.12 compatibility, by @waker