]> err.no Git - libchamplain/commitdiff
Provide our own gtk_widget_get_window() if GTK is missing it.
authorEmmanuel Rodriguez <emmanuel.rodriguez@gmail.com>
Sun, 2 Aug 2009 21:30:40 +0000 (23:30 +0200)
committerPierre-Luc Beaudoin <pierre-luc@pierlux.com>
Mon, 3 Aug 2009 22:14:27 +0000 (18:14 -0400)
Debian lenny has an older version of GTK (2.12) that's missing gtk_widget_get_window().

champlain-gtk/gtk-champlain-embed.c

index 533019113dc633f3bea6e5fd0f78a1b15ccf1047..a3d483956e63479f7661d0e16c7a869e8c433e49 100644 (file)
 
 #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 */