From: Emmanuel Rodriguez Date: Sun, 2 Aug 2009 21:30:40 +0000 (+0200) Subject: Provide our own gtk_widget_get_window() if GTK is missing it. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32efe7e3b386731ae8ae7e7a2a170a33d7ea993b;p=libchamplain Provide our own gtk_widget_get_window() if GTK is missing it. Debian lenny has an older version of GTK (2.12) that's missing gtk_widget_get_window(). --- diff --git a/champlain-gtk/gtk-champlain-embed.c b/champlain-gtk/gtk-champlain-embed.c index 5330191..a3d4839 100644 --- a/champlain-gtk/gtk-champlain-embed.c +++ b/champlain-gtk/gtk-champlain-embed.c @@ -35,6 +35,10 @@ #include "gtk-champlain-embed.h" +#if (GTK_MAJOR_VERSION == 2 && GTK_MINOR_VERSION <= 12) +#define gtk_widget_get_window(widget) ((widget)->window) +#endif + enum { /* normal signals */